Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: calculating markov transition probability
Date: Wed, 24 Apr 2013 16:03:09 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 9
Message-ID: <kl8vnt$rhm$1@newscl01ah.mathworks.com>
References: <kl8cd3$q3h$1@newscl01ah.mathworks.com> <kl8nl5$gm$1@newscl01ah.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1366819389 28214 172.30.248.47 (24 Apr 2013 16:03:09 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 24 Apr 2013 16:03:09 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:794258

Another way of resolution is (the rest is the same):

% Resolution
Q = null(C);
Y0 = C\b;
Y = Y0 + Q*(pinv(M*Q) * (B(:)-M*Y0));
Y = reshape(Y,[n n])

% Bruno