You are here
Rectangular Matrix in Matlab
Thu, 2011-04-14 08:58 - Harshit Nooji
Hi All
I have a problem to solve rectangular matrix in matlab. How to find out parameters if i know the coefficients.
Comments
you can do regression analysis... least squares fit
Harshit,
See the following derivation which answers your question, http://people.wallawalla.edu/~louie.yaw/otherfiles/overdetermined.pdf
I hope this is helpful.
Louie
Re: Rectangular Matrix in Matlab
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.