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

採用された回答

Birdman
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 ExchangeLinear Least Squares についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by