Subscripted assignment dimension mismatch. error is coming how can I remove error?

Z=[];n=1;
for i=1:4:3500
Z(n:n+799,1)=AC(:,i+2);
Z(n:n+799,2)=AC(:,i+3);
Z(n:n+799,3)=AC(:,i);
n=n+800;
end
Subscripted assignment dimension mismatch.

4 件のコメント

Matt J
Matt J 2013 年 9 月 28 日
What does the DBSTOP command tell you?
RS
RS 2013 年 9 月 28 日
Set breakpoints for debugging
dpb
dpb 2013 年 9 月 28 日
size(AC) % ???
Jan
Jan 2013 年 9 月 28 日
Please post a complete copy of the error message. It would tell us, which line causes the troubles, such that we do not have to guess, where the problem is and can concentrate on solving the problem.

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

回答 (1 件)

Walter Roberson
Walter Roberson 2013 年 9 月 29 日

0 投票

Your array AC does not have exactly 800 rows.

カテゴリ

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

質問済み:

RS
2013 年 9 月 28 日

回答済み:

2013 年 9 月 29 日

Community Treasure Hunt

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

Start Hunting!

Translated by