필터 지우기
필터 지우기

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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by