Re: [討論]請問時間對y作圖

作者: ksr310135 (馨右小小)   2017-01-08 01:03:01
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;

Links booklink

Contact Us: admin [ a t ] ucptt.com