- 积分
- 0
- 注册时间
- 2012-3-30
- 仿真币
-
- 最后登录
- 1970-1-1
|
M文件如下:
%%CIM
function dx = funt_CIM(t,x)
dx = [x(1);x(2);x(3);x(4)]
w = 100
dx(1) = x(2)
dx(3) = x(4)
dx(2) = (-.3077e9+w^2)*x(1)+3.299*w*x(4)-.1477e10*x(3)^2
dx(4) = (-.3265e5-.1044e10*x(1)-.3580e10*x(3)^2+w^2)*x(3)-1.167*w*x(2)-.3580e10*x(3)^3
在命令窗口输入下面命令:
[t,x] = ode45('funt_CIM',[0,0.2],[0.001;0;0.001;0])
figure(1)
plot(t,x(:,1));grid on;
xlabel('time s');
ylabel('qf1 m');
figure(2)
plot(t,x(:,2));grid on;
xlabel('time s');
ylabel('qf1 dt m/s');
figure(3)
plot(t,x(:,3));grid on;
xlabel('time s');
ylabel('qf2 m');
figure(4)
plot(t,x(:,4));grid on;
xlabel('time s');
ylabel('qf2 dt m/s');
图像如下:
请问这是怎么回事啊,是刚性方程的问题吗???
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注册
×
|