User login

Navigation

You are here

Rectangular Matrix in Matlab

Harshit Nooji's picture

Hi All

I have a problem to solve rectangular matrix in matlab. How to find out parameters if i know the coefficients. 

Comments

yawlou's picture

Harshit,

See the following derivation which answers your question, http://people.wallawalla.edu/~louie.yaw/otherfiles/overdetermined.pdf

 I hope this is helpful.

 Louie

N. Sukumar's picture

I will rewrite your system as: Ax = b where A is a rectangular (non-square) matrix.  You can find x in Matlab in couple of ways (at least): (1) Use the `slash` operator in Matlab, i.e., x = A\b which provides the `sparsest' x vector (most number of zeros) that satisfies Ax = b; or (2) Use the `pinv' function in Matlab (Morse-Penrose or pseudoinverse): x = pinv(A)*b which yields the solution x with minimum 2-norm.

Subscribe to Comments for "Rectangular Matrix in Matlab"

Recent comments

More comments

Syndicate

Subscribe to Syndicate