From: Marcin on
Hi
I'm having a lot of truble with solving overdetermined equation system in a least square sense. My equation system looks like this:

p=H*G*n

where:
H is a 42/44 matrix
G is a 42/44 matrix
n is a 42/42 matrix

I've tried using LMFnlsq however, I haven't been successful

I would very much appreciate any help or suggestion regarding my problem
From: Jomar Bueyes on
On May 5, 2:00 pm, "Marcin " <mkorbasiew...(a)gnail.com> wrote:
> Hi
> I'm having a lot of truble with solving overdetermined equation system in a least square sense. My equation system looks like this:
>
> p=H*G*n
>
> where:
>  H is a 42/44 matrix
> G is a 42/44 matrix
> n is a  42/42 matrix
>
> I've tried using LMFnlsq however, I haven't been successful
>
> I would very much appreciate any help or suggestion regarding my problem

Marcin,

Your post does not tell much detail of "I haven't been successful". Do
you get error messages, wrong results, ...?
I noticed, however, that G has the wrong size. It should be 44/42 to
be conformable to the other two matrices.

Best luck

Jomar
From: Matt J on
"Marcin " <mkorbasiewicz(a)gnail.com> wrote in message <hrsbn6$8vo$1(a)fred.mathworks.com>...
> Hi
> I'm having a lot of truble with solving overdetermined equation system in a least square sense. My equation system looks like this:
>
> p=H*G*n
>
> where:
> H is a 42/44 matrix
> G is a 42/44 matrix
> n is a 42/42 matrix
>
> I've tried using LMFnlsq however, I haven't been successful
=============

which are the unknowns?
From: Roger Stafford on
"Marcin " <mkorbasiewicz(a)gnail.com> wrote in message <hrsbn6$8vo$1(a)fred.mathworks.com>...
> Hi
> I'm having a lot of truble with solving overdetermined equation system in a least square sense. My equation system looks like this:
>
> p=H*G*n
>
> where:
> H is a 42/44 matrix
> G is a 42/44 matrix
> n is a 42/42 matrix
>
> I've tried using LMFnlsq however, I haven't been successful
>
> I would very much appreciate any help or suggestion regarding my problem

Use the backslash operator, "\".

Roger Stafford
From: Marcin on
"Roger Stafford" <ellieandrogerxyzzy(a)mindspring.com.invalid> wrote in message <hrscjq$9cp$1(a)fred.mathworks.com>...
> "Marcin " <mkorbasiewicz(a)gnail.com> wrote in message <hrsbn6$8vo$1(a)fred.mathworks.com>...
> > Hi
> > I'm having a lot of truble with solving overdetermined equation system in a least square sense. My equation system looks like this:
> >
> > p=H*G*n
> >
> > where:
> > H is a 42/44 matrix
> > G is a 42/44 matrix
> > n is a 42/42 matrix
> >
> > I've tried using LMFnlsq however, I haven't been successful
> >
> > I would very much appreciate any help or suggestion regarding my problem
>
> Use the backslash operator, "\".
>
> Roger Stafford
The unknown is p. I've made a mistake in my original massage. I is as Jomar said the matrices H and G are 44/42.

Roger I don't really see how to use the backslash operator, "\" in my case??