我以前碰到过的chua's方程是如下形式:
a*(y(2)-y(1))-gx=0;
xigma*(-a*(y(2)-y(1))+y(3))=0;
-c*(y(2)+r*y(3))=0.
%%%%%%%%%%%%%%%%
相应的程序如下:
%%%%%%%%%%%%%%
function dy=Chuaseq(t,y,a,b,c);
% 定义Chua's Circuit方程
xigma=0.066;
r=0.071;
if abs(y(1))<1
gx=y(1);
elseif abs(y(1))<10;
gx=(-1+b*(abs(y(1)-1)))*sign(y(1));
else
gx=(10*(abs(y(1))-10)+(9*b-1))*sign(y(1));
end
dy=zeros(3,1);
dy=[a*(y(2)-y(1))-gx;
xigma*(-a*(y(2)-y(1))+y(3));
-c*(y(2)+r*y(3))];
%%%%%%%%%%%%%%%%
调用如下:
%%%%%%%%%%%%%%%%
[t,y]=ode45(@Chuaseq,[0,1000],[1,1,1],[],0.923,0.636,0.779);
plot3(y(:,1),y(:,2),y(:,3));
%%%%%%%%%%%%%%%%%%%
你可以参考一下以上程序.
不过效果看上去还是不如矩阵形式(另一种计算方法)的计算结果好.
[ 本帖最后由 xjzuo 于 2007-1-13 22:53 编辑 ] |