|
楼主 |
发表于 2007-7-27 21:41
|
显示全部楼层
- 线性化方法你可以参考下面的程序!
- Lorenz系统为例
- function OUT=lorenzeq(t,X)
- %LORENZEQ Lorenz equation
- %PARAMETERS
- SIGMA = 16;
- RHO = 45.92;
- BETA = 4;
- %Rearrange input data in desired format
- %Note: the input data is a column vector
- x=X(1);y=X(2);z=X(3);
- Q=[X(4), X(7), X(10);
- X(5), X(8), X(11);
- X(6), X(9), X(12)];
- %Lorenz equation
- dx=SIGMA*(y-x);
- dy=-x*z+RHO*x-y;
- dz=x*y-BETA*z;
- DX1=[dx;dy;dz]; %Output data
- %Linearized system
- J=[-SIGMA, SIGMA, 0;
- RHO-z, -1, -x;
- y, x, -BETA];
-
- %Variational equation
- F=J*Q;
- %Output data must be a column vector
- OUT=[DX1; F(:)];
复制代码
我的意思是说 你这代码是不是还得有一个lyapunov.m来运行 然后画李雅普诺夫指数图? |
|