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 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
