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

 Réponse acceptée

James Tursa
James Tursa le 26 Avr 2019
Modifié(e) : James Tursa le 26 Avr 2019

0 votes

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

1 commentaire

gonçalo saial
gonçalo saial le 26 Avr 2019
The 'aig' is a variable, is an angle in degrees.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by