Error in coding..help needed

1 次查看(过去 30 天)
Sherif
Sherif 2011-3-24
Coding
cosintegral(k,i,jj)=s((k-1)*100+jj).*sinerom(i,jj);
Error
The variable 'cosintegral' appears to change size on every loop iteration (within a script). consider preallocating for speed.

采纳的回答

Matt Fig
Matt Fig 2011-3-24
That isn't an error, but a warning, right?
You must have looked at the other question you asked about this problem. Do you consider that question closed?
cosintegral = zeros(size(a,2),2,100);
Put this before the loop.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by