哪位MATLAB提示错误 “下标索引必须是正整数或逻辑”
x=-300;y=-300;z=0;while0<=z<=300;while-300<=y<=300;while-300<=x<=300;endx=x+0.05endy=...
x=-300;
y=-300;
z=0;
while 0<=z<=300;
while -300<=y<=300;
while -300<=x<=300;
end
x=x+0.05
end
y=y+0.05;
x=-300;
end
z=z+0.05;
y=-300;
x=-300;应该是x,y,z的下标的问题,这样的循环该怎么写啊 展开
y=-300;
z=0;
while 0<=z<=300;
while -300<=y<=300;
while -300<=x<=300;
end
x=x+0.05
end
y=y+0.05;
x=-300;
end
z=z+0.05;
y=-300;
x=-300;应该是x,y,z的下标的问题,这样的循环该怎么写啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询