フィルターのクリア

Index in position 2 exceeds array bounds (must not exceed 1) - need help with getting this to work. thanks

1 回表示 (過去 30 日間)
for i = 1:NA
for j= 1:NB
Bxx(i,j) = ( a11(i,j)*a22(i,j)) - ( a12(i,j)*a21(i,j)) / a11(i,j);
% Bxy(i,j) = [ a11(i,j)*a23(i,j) - a21(i,j)*a13(i,j)] / a11(i,j);
% Bxw(i,j) = [ all(i,j)*a24(i,j) - a21(i,j)*a14(i,j)] / all(i,j);
% Byx(i,j) = [ all(i,j)*a32(i,j) - a12(i,j)*a31(i,j)] / a11(i,j);
% Byy(i,j) = [ a11(i,j)*a33(i,j) - a13(i,j)*a31(i,j)] / a11(i,j);
% Byw(i,j) = [ a11(i,j)*a34(i,j) - a14(i,j)*a31(i,j)] / a11(i,j);
end
end
  6 件のコメント
Rik
Rik 2020 年 12 月 3 日
Your numbered variables make it look like you should be using arrays instead.
If you want NA to be 20, then you need to made sure all those a__ variables have at least 20 rows.

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

回答 (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