フィルターのクリア

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

1 回表示 (過去 30 日間)
Austen Thomas
Austen Thomas 2018 年 1 月 20 日
コメント済み: Walter Roberson 2018 年 1 月 20 日
I am trying to create a plot with multiple varying functions but i keep getting the error that the index exceeds the matrix dimensions.

採用された回答

Walter Roberson
Walter Roberson 2018 年 1 月 20 日
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 件のコメント
Austen Thomas
Austen Thomas 2018 年 1 月 20 日
im relatively new to matlab so i dont know how to do that
Walter Roberson
Walter Roberson 2018 年 1 月 20 日
for AR = 1 : 10
for i = 1 : length(k)
...
end
end

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by