Matlab code by gauss elimination method
2 次查看(过去 30 天)
显示 更早的评论

2 个评论
回答(1 个)
Ameer Hamza
2020-4-17
编辑:Ameer Hamza
2020-4-17
Since this is a homework question, so I will not show you how to implement least-square method. The following show how MATLAB allows to least-square methods in one line.
A = [1 0 2;
2 1 0;
3 2 1];
B = [-9;
5;
4];
x = A\B;
For further help. Show us the code you have already tried and ask specific questions related to MATLAB.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear Algebra 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!