作者ksr310135 (馨右小小)
看板MATLAB
标题Re: [讨论]请问时间对y作图
时间Sun Jan 8 01:03:01 2017
function test
[t,y]=ode45(@ps3_1_3_hill_fun,[0,25],0);
plot(t,y)
function dydt=ps3_1_3_hill_fun(t,y)
H=0;
if 10<t<15
H=1;
end
dydt=1900*H+100-2*y;
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 60.250.64.98
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MATLAB/M.1483808583.A.C8F.html