Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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 comentarios
Rik
Rik el 3 de Dic. de 2020
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by