| 查看: 315 | 回复: 0 | ||
[求助]
混沌Lorenz系统数据生成仿真报错,怎么办?
|
|
子函数: function dx=Lorenz_cwhe(t,x) dx=zeros(3,1); dx(1)=-10*(x(2)-x(3)); dx(2)=x(1)*(28-x(3))-x(2); dx(3)=x(1)*x(2)-8*x(3)/3; end 主函数: clc;clear;close all; [t,x]=ode45(@Lorenz_cwhe,[0 0.01 15],[0 3 1.5]); figure plot(t,x(:,1),'-*k',t,x(:,2),':dk',t,x(:,3),'--+k'); legend('y1','y2','y3'); 报错提示: Undefined function 'odearguments' for input arguments of type 'function_handle'. Error in ode45 (line 114) [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, odeArgs, odeFcn, ... Error in Lorenz_data_cwhe (line 2) [t,x]=ode45(@Lorenz_cwhe,[0 0.01 15],[0 3 1.5]); 关键:还有个问题是Lorenz的积分步长为0.01是在哪设置的呀? |
» 猜你喜欢
348分环境工程·调剂
已经有5人回复
考研调剂
已经有4人回复
283分材料与化工求调剂
已经有25人回复
298求调剂
已经有8人回复
266求调剂
已经有17人回复
265求调剂
已经有19人回复
考研调剂
已经有3人回复
材料295
已经有6人回复
288求调剂 一志愿哈工大 材料与化工
已经有39人回复
285求调剂
已经有7人回复














回复此楼