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

 채택된 답변

James Tursa
James Tursa 2019년 4월 26일
편집: James Tursa 2019년 4월 26일

0 개 추천

What is numel(aig)? Seems like aig doesn't have 45 elements.

댓글 수: 1

gonçalo saial
gonçalo saial 2019년 4월 26일
The 'aig' is a variable, is an angle in degrees.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

질문:

2019년 4월 26일

댓글:

2019년 4월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by