Demo entry 6746034

Lorenz

   

Submitted by shane on May 28, 2018 at 08:46
Language: Matlab. Code size: 168 Bytes.

function dy=lorenz(t,y)   % y(1)=x,y(2)=y,y(3)=z
dy=zeros(3,1); %给函数定一个空间,表明函数有三个值
dy(1)=10*(-y(1)+y(2));
dy(2)=0.5*y(1)-y(2)-y(1)*y(3);
dy(3)=y(1)*y(2)-8*y(3)/3;

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).