Index exceeds matrix dimensions.
3 views (last 30 days)
Show older comments
gonçalo saial
on 26 Apr 2019
Commented: gonçalo saial
on 26 Apr 2019
In my program i have this error: "Index exceeds matrix dimensions. Error in codigo (line 38) air(a) = (aig(a)*2*pi)./360;"
How can I fix that? Thanks in advance!
a=0;
b=0;
while a~=46;
a=a+1;
while b~=0;
air(a) = (aig(a)*2*pi)./360;
b=b-1;
end
b=20;
end
0 Comments
Accepted Answer
James Tursa
on 26 Apr 2019
Edited: James Tursa
on 26 Apr 2019
What is numel(aig)? Seems like aig doesn't have 45 elements.
More Answers (0)
See Also
Categories
Find more on Matrix Indexing 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!