Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Solve Matrix Equation AX=XB
Date: Mon, 15 Jun 2009 23:00:21 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 7
Message-ID: <h16jq4$a79$1@fred.mathworks.com>
References: <h16ekh$26u$1@fred.mathworks.com> <h16fq1$gqn$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
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 1245106821 10473 172.30.248.38 (15 Jun 2009 23:00:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 15 Jun 2009 23:00:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:547716

n = length(A);
G = kron(eye(n),A)-kron(B.',eye(n));
x = null(G)

% reshaping each column of x to (n x n) matrix X will provide a basis-element of the space of solutions.

Bruno