Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Topic: Backslash Operator on a vector In MATLAB
Replies: 2   Last Post: Mar 14, 2013 9:29 AM

 Messages: [ Previous | Next ]
 Torsten Posts: 1,631 Registered: 11/8/10
Re: Backslash Operator on a vector In MATLAB
Posted: Mar 14, 2013 7:08 AM

> Dear Friends,
>
> In MATLAB let us type
>
> A = [0.1195952380 0.2552619050 0.3235000000 0.1289285710 0.6675476190 -0.0770000000 0.1973809520];
>
> and
>
> b0 = 1.7250238100;
>
> If I use backslash operator as 'A\b0', the result is
>
> [0 0 0 0 2.5841 0 0]
>
> and if I use
>
> pinv(A)*b0
>
> we get the answer as:
>
> 0.2985 0.6370 0.8073 0.3217 1.6659 -0.1922 0.4926
>
> But many documents which talk about backslash operator, say that both the operations should result in the same answer. Why is this not so in this case?
>
> Can anybody help me in this regard?
>
> Thanks,
>
> Babu.

To say it simple:
because your equation has many solutions that are equally valid.

Best wishes
Torsten.

Date Subject Author
3/14/13 Torsten
3/14/13 Steven Lord