Error in coding..help needed

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 日

1 投票

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.

1 件のコメント

Sherif
Sherif 2011 年 3 月 25 日
thanks it is really help ful

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

2011 年 3 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by