初学者请教一个简单程序
刚刚接触MATLAB,想请大家帮忙写个小程序,谢谢了!题目:对于非线性系统 x'=﹣x﹢xˆ2 ,用MATLAB仿真其在初始条件分别为 x=0.5 ,x=2 时的响应曲线 这个又专门的资料的,可以去看看 f=inline('-1*x+x*x','t','x');
=ode45(f,,0.5)
subplot(1,2,1);
plot(t,y)
hold on
clear t;
clear y;
=ode45(f,,2)
subplot(1,2,2);
plot(t,y)
clear t;
clear y; 谢谢了!!!!!!!!!!!!!
页:
[1]