Matlab code by gauss elimination method
Ältere Kommentare anzeigen

2 Kommentare
Ameer Hamza
am 17 Apr. 2020
Original title of the question: Matlab code by last square method and polyfit
Ahmet Tasgetiren
am 17 Apr. 2020
Antworten (1)
Ameer Hamza
am 17 Apr. 2020
Bearbeitet: Ameer Hamza
am 17 Apr. 2020
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.
Kategorien
Mehr zu Linear Algebra 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!