How can I implement the 3*3 matrix in a for loop?
이전 댓글 표시
채택된 답변
추가 답변 (1개)
Andrei Bobrov
2017년 3월 31일
편집: Andrei Bobrov
2017년 3월 31일
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;
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
