MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   【求助】arnold变换程序问题 (https://www.labfans.com/bbs/showthread.php?t=1690)

vivi821014 2008-03-15 19:34

【求助】arnold变换程序问题
 
function period=ArnoldPeriod(N)
N=64;
if(N<2)
period=0;
return;
end
n=1;x=1;y=1;
while(n~=0)
xn=x+y;
yn=x+2*y;
if(mod(xn,N)==1&&mod(yn,N)==1)
period=n;
return;
end
x=mod(xn,N);
y=mod(yn,N);
n=n+1;
end
[SIZE="5"]为什么运行后不显示n的值,也没有什么运行错误显示啊?怎么才能显示结果?谢谢![/SIZE]


所有时间均为北京时间。现在的时间是 11:14

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.