deven1985 发表于 2010-5-14 14:28

初学者请教一个简单程序

刚刚接触MATLAB,想请大家帮忙写个小程序,谢谢了!

题目:对于非线性系统 x'=﹣x﹢xˆ2  ,用MATLAB仿真其在初始条件分别为 x=0.5  ,x=2  时的响应曲线

安树庭 发表于 2010-5-14 16:35

这个又专门的资料的,可以去看看

smile_nk 发表于 2010-5-14 18:35

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;

deven1985 发表于 2010-5-16 19:59

谢谢了!!!!!!!!!!!!!
页: [1]
查看完整版本: 初学者请教一个简单程序