how to find multiply variable in matrix multiplication
1 次查看(过去 30 天)
显示 更早的评论
function least_square;
x=[1 2 3 4 5];
y=[4;2;5;3;7];
n=numel(x);
for i=1:n
A(i,1)=1;
A(i,2)=x(i);
A(i,3)=x(i).^2;
end
we have matrix A(5x3) and matrix y(5x1) let a matrix a(3x1) satisfy Aa=y so any function or method to find matrix a?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!