The Math Forum



Search All of the Math Forum:

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


Math Forum » Discussions » Software » comp.soft-sys.matlab

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

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Steven Lord

Posts: 18,038
Registered: 12/7/04
Re: Backslash Operator on a vector In MATLAB
Posted: Mar 14, 2013 9:29 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply



<leaderbabuabc@gmail.com> wrote in message
news:1760c185-efa5-4db6-baf1-9f38761347aa@googlegroups.com...
> 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?


Because it's not necessarily true in general? Can you post a link to one of
those "many documents?" If they're part of the MathWorks documentation they
may be related to a specific scenario where that is the case, or they may
need to be corrected.

http://www.mathworks.com/help/matlab/ref/pinv.html

Read through the Examples section.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2017. All Rights Reserved.