还有一点(不是必须的野并)
[d]=main(jpg)
可以没有禅兆输入
例如:
[d]=main
function Untitled2( )%UNTITLED2 Summary of this function goes here
% Detailed explanation goes here
u=zeros(1,2511)
for t=1:1:11
u(t)=0.05*t
end
for t=12:2510
k1=0.01*u(t-1)*(1-0.1*u(t-1))+0.01*u(t-10)
k2=0.01*(u(t-1)+0.5*k1)*(1-0.1*(u(t-1)+0.5*k1))+0.01*(u(t-10)+0.5*k1)
k3=0.01*(u(t-1)+0.5*k2)*(1-0.1*(u(t-1)+0.5*k2))+0.01*(u(t-10)+0.5*k2)
k4=0.01*(u(t-1)+k3)*(1-0.1*(u(t-1)+k3))+0.01*(u(t-10)+0.5*k3)
u(t)=u(t-1)+(k1+2*k2+2*k3+k4)/6
for k=1:1:5
if t==500*k+10
u(t)=(0.5^(2*k))*u(t-1)
end
end
end
t=0:2510
plot(t,u)
end
保存名吵谈为函升伍碰数名橘滑。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)