How to slove AX=B, an over determined system represented by matrices. A is 500 x 3 matrix and B is 500 x 1 matrix and need to find 'X' a 3x1 matrix.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Lakshmi Chodavarapu
il 2 Mar 2018
Commentato: Lakshmi Chodavarapu
il 3 Mar 2018
I dont have optimization toolbox
0 Commenti
Risposta accettata
Birdman
il 2 Mar 2018
By directly using linsolve.
A numeric example:
%random datas
A=randi([1 3],500,3);
B=randi([1 3],500,1);
%solution
X=linsolve(A,B)
3 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Linear Least Squares in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!