展开全部
matlab 编程 suhsu = []; for i = 1:100,
m = [];
for j = 1:i,
m(j) = mod(i,j);
end
if(length(find(m == 0)) == 2)
sushu = [suhsu i];
end
end
已经测试过了 程序编写正确
m = [];
for j = 1:i,
m(j) = mod(i,j);
end
if(length(find(m == 0)) == 2)
sushu = [suhsu i];
end
end
已经测试过了 程序编写正确
更多追问追答
追问
难道是我这儿有问题,它不能运行
追答
suhsu = [];
for i = 1:100,
m = [];
for j = 1:i,
m(j) = mod(i,j);
end
if(length(find(m == 0)) == 2)
sushu = [suhsu i]
end
end
你再试一次
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询