How can I implement the 3*3 matrix in a for loop?
Ältere Kommentare anzeigen
Akzeptierte Antwort
Weitere Antworten (1)
Andrei Bobrov
am 31 Mär. 2017
Bearbeitet: Andrei Bobrov
am 31 Mär. 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;
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
