Filter löschen
Filter löschen

Index exceeds matrix dimensions. Error in HW2 (line 82) CL(i) = a(i)*(AOA(i) - alp0);

1 Ansicht (letzte 30 Tage)
I am trying to create a plot with multiple varying functions but i keep getting the error that the index exceeds the matrix dimensions.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Jan. 2018
Your for 1:1:10 initializes a(1) to a(10). The loop after that is to length(k) which is 33 so it tries to use a(1) to a(33) but a(11) onwards does not exist
  4 Kommentare
Austen Thomas
Austen Thomas am 20 Jan. 2018
im relatively new to matlab so i dont know how to do that

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by