Labfans是一个针对大学生、工程师和科研工作者的技术社区。 论坛首页 | 联系我们(Contact Us)
MATLAB爱好者论坛-LabFans.com
返回   MATLAB爱好者论坛-LabFans.com > 工程数学软件 > MATLAB论坛
MATLAB论坛 一切MATLAB相关问题在此讨论。
 
 
主题工具 显示模式
旧 2008-01-09, 18:51   #1
vikki1995
初级会员
 
注册日期: 2007-07-17
帖子: 11
声望力: 18
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)
end
end

这样行不行,请大家帮忙看看,谢谢。

运行问题
The variable "ljhist" is also the name of this script.
This is illegal, because it will be the name of a script and a variable
in any context from which the script is called.
vikki1995 当前离线   回复时引用此帖
 


发帖规则
不可以发表新主题
不可以发表回复
不可以上传附件
不可以编辑自己的帖子

启用 BB 代码
论坛启用 表情符号
论坛启用 [IMG] 代码
论坛禁用 HTML 代码



所有时间均为北京时间。现在的时间是 07:50


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