Matlab ode45('youmofangcheng',[0:T/100:2200*T],x0,[],w);global w;omega=50:10:500;x0=[0.000001;0;0.000001;0;0.000001;0;0.000001;0;];k=length(omega);options=odeset;options.reltol=1*10^(-5);options.abstol=1*10^(-5);for h=1:kw=omega(h);T=2*pi;[t,x]=ode45
来源:学生作业帮助网 编辑:作业帮 时间:2024/08/12 12:25:18
![Matlab ode45('youmofangcheng',[0:T/100:2200*T],x0,[],w);global w;omega=50:10:500;x0=[0.000001;0;0.000001;0;0.000001;0;0.000001;0;];k=length(omega);options=odeset;options.reltol=1*10^(-5);options.abstol=1*10^(-5);for h=1:kw=omega(h);T=2*pi;[t,x]=ode45](/uploads/image/z/14555970-18-0.jpg?t=Matlab+ode45%28%27youmofangcheng%27%2C%5B0%3AT%2F100%3A2200%2AT%5D%2Cx0%2C%5B%5D%2Cw%29%3Bglobal+w%3Bomega%3D50%3A10%3A500%3Bx0%3D%5B0.000001%3B0%3B0.000001%3B0%3B0.000001%3B0%3B0.000001%3B0%3B%5D%3Bk%3Dlength%28omega%29%3Boptions%3Dodeset%3Boptions.reltol%3D1%2A10%5E%28-5%29%3Boptions.abstol%3D1%2A10%5E%28-5%29%3Bfor+h%3D1%3Akw%3Domega%28h%29%3BT%3D2%2Api%3B%5Bt%2Cx%5D%3Dode45)
Matlab ode45('youmofangcheng',[0:T/100:2200*T],x0,[],w);global w;omega=50:10:500;x0=[0.000001;0;0.000001;0;0.000001;0;0.000001;0;];k=length(omega);options=odeset;options.reltol=1*10^(-5);options.abstol=1*10^(-5);for h=1:kw=omega(h);T=2*pi;[t,x]=ode45
Matlab ode45('youmofangcheng',[0:T/100:2200*T],x0,[],w);
global w;
omega=50:10:500;
x0=[0.000001;0;0.000001;0;0.000001;0;0.000001;0;];
k=length(omega);
options=odeset;
options.reltol=1*10^(-5);
options.abstol=1*10^(-5);
for h=1:k
w=omega(h);
T=2*pi;
[t,x]=ode45('youmofangcheng',[0:T/100:2200*T],x0,[],w);
错在哪里了,最后一部提示时间范围不用方括号,可以用圆括号,这不科学啊
Matlab ode45('youmofangcheng',[0:T/100:2200*T],x0,[],w);global w;omega=50:10:500;x0=[0.000001;0;0.000001;0;0.000001;0;0.000001;0;];k=length(omega);options=odeset;options.reltol=1*10^(-5);options.abstol=1*10^(-5);for h=1:kw=omega(h);T=2*pi;[t,x]=ode45
[0:T/100:2200*T] 中的":"改为逗号或空格