Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <brunoluong@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Solving Equation
Date: Fri, 23 Nov 2007 08:38:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 23
Message-ID: <fi63hb$2o0$1@fred.mathworks.com>
References: <d2ea35f2-b295-4b24-a58f-4aa7bf3359ae@s8g2000prg.googlegroups.com>  <07861df5-d651-414c-8254-0f661a9f2d16@b40g2000prf.googlegroups.com>
Reply-To: "Bruno Luong" <brunoluong@yahoo.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1195807083 2816 172.30.248.38 (23 Nov 2007 08:38:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 23 Nov 2007 08:38:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1184112
Xref: news.mathworks.com comp.soft-sys.matlab:438986


sumnaray@gmail.com wrote in message 

> 
> But I am afraid, I still get NaN in my result. I am trying
this with
> 
> M = [0.5 -0.5 0.5 0; 0 1 0 0; -0.5 -0.5 1.5 0;  0 0 0 0]

In order the problem to be well-posed, the input M needs to
be a full-rank matrix (inversible). Your matrix isn't. That
is why you get NaN. 


> 
> And if you mind me asking, what does [2 1 4 3] mean in BIGM2
> expression? I am sorry, I am not very familiar with Matlab.
> 

I get an intermediate 4-D array which I want to reshape by
swapping dimensions 1 with 2; and also 3 with 4.

Bruno