Subscripted assignment dimension mismatch. error is coming how can I remove error?
Show older comments
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 Comments
Matt J
on 28 Sep 2013
What does the DBSTOP command tell you?
RS
on 28 Sep 2013
dpb
on 28 Sep 2013
size(AC) % ???
Jan
on 28 Sep 2013
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.
Answers (1)
Walter Roberson
on 29 Sep 2013
0 votes
Your array AC does not have exactly 800 rows.
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!