matlab输出斐波拉基数列
答案:1 悬赏:60 手机版
解决时间 2021-11-10 12:18
- 提问者网友:喧嚣尘世
- 2021-11-10 04:10
matlab输出斐波拉基数列
最佳答案
- 五星知识达人网友:玩家
- 2021-11-10 04:17
基数排序
clc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
end
clc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
endclc;
clear all;
close all;
c=[72 30 83 81 5 7 46 21]
sw=max(ceil(log(c)/log(10)));
for i=0:100
rem(c,10^(sw-i));
if sum(rem(c,10^(sw-i)))==0
xw=sw-i;
break;
end
end
for i=xw:sw-1
r=rem(floor(c/(10^i)),10);
[x0 x1]=sort(r);
c=c(x1)
end
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯