引用:
作者: vikki1995
关于元胞数组能否用于循环数组程序,请教各位高手。
for e=1:1:10
ljhist{e}(1)=i{e}(1)
end
for e=1:1:10
for f=1:1:15
ljhist{e}(f+1)=ljhist{e}(f)+i{e}(f+1)
en...
|
你的程序格式不正确导致的.
for e=1:10
ljhist(e,1)=i*e(1) %这个i是什么意思? 是数值吗?
end
for e=1:10
for f=1:15
ljhist(e,f+1)=ljhist(e,f)+i(e,f+1);
end
end
注意: 我只改了错误的格式,至于这2个命令要做什么因为不清楚,所以程序运行肯定出错. 请只参考 命令格式.