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 回表示 (過去 30 日間)
古いコメントを表示
I dont have optimization toolbox
0 件のコメント
採用された回答
Birdman
2018 年 3 月 2 日
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 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Linear Least Squares についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!