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.

2 views (last 30 days)
I dont have optimization toolbox

Accepted Answer

Birdman
Birdman on 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 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!