请问:这个程序错误怎么回事?
10: Array 'm' might be grown using subscripting. Consider preallocating for speed.for i=k+1:n
m(i,k)=a(i,k)/a(k,k);
a(i,k:n+1)=a(i,k:n+1)-m(i,k).*a(k,k:n+1);
end 原帖由 cannor 于 2006-11-17 14:26 发表
10: Array 'm' might be grown using subscripting. Consider preallocating for speed.
for i=k+1:n
m(i,k)=a(i,k)/a(k,k);
a(i,k:n+1)=a(i,k:n+1)-m(i,k).*a(k,k:n+1);
end
帮助里面搜索 Preallocating Arrays 谢谢了
页:
[1]