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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

2011년 3월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by