How can I implement the 3*3 matrix in a for loop?
Mostrar comentarios más antiguos
Respuesta aceptada
Más respuestas (1)
Andrei Bobrov
el 31 de Mzo. de 2017
Editada: Andrei Bobrov
el 31 de Mzo. de 2017
x = (1:3)';
y = (2:4)';
z = (6:8)';
n = 5;
m = numel(x);
a = [x,y,ones(m,1)];
lhs = a.'*a;
lhs(end) = n;
rhs = a.'*z;
abc = lhs\rhs;
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
