24小时热门版块排行榜    

CyRhmU.jpeg
查看: 279  |  回复: 0

因为有你执着

新虫 (初入文坛)

[求助] 麻烦帮我调一下这个Matlab程序?谢谢

function [sol0,sol1]=f
global a b w T
a=3;b=-6;w=5;
sol0 = dde23(@f,[],0.3,[0,50]);
size(sol0)
Delays = [0.05 0.06 0.1 0.25];


     for i = 1:4
        T = Delays(i);
      sol1(i)= dde23(@f,T,0.3,[0, 50]);
   
   
     end
   figure
   plot(sol0.y,sol1(1).y)
   figure
   plot(sol1(2).x,sol1(2).y)
   figure
   plot(sol1(3).x,sol1(3).y)
   figure
   plot(sol1(4).x,sol1(4).y)
function yp = f(t,y,Z)
global a b w T
if isempty(Z)  
yp = -y+a*0.5*(abs(y+1)-abs(y-1))+b*sin(w*y);
else      
yp = -y+a*0.5*(abs(y+1)-abs(y-1))+b*sin(w*Z);
end
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

智能机器人

Robot (super robot)

我们都爱小木虫

相关版块跳转 我要订阅楼主 因为有你执着 的主题更新
信息提示
请填处理意见