<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159258</link>
    <title>MATLAB Central Newsreader - Matrix Equation solving</title>
    <description>Feed for thread: Matrix Equation solving</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 20 Nov 2007 01:37:24 -0500</pubDate>
      <title>Re: Matrix Equation solving</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159258#402184</link>
      <author>Roger Stafford</author>
      <description>"Roger Stafford" &amp;lt;ellieandrogerxyzzy@mindspring.com.invalid&amp;gt; wrote in &lt;br&gt;
message &amp;lt;fhsnu5$hg7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&lt;br&gt;
&amp;gt;   Shameer, I was too lazy Saturday to work out matlab code for &lt;br&gt;
automatically &lt;br&gt;
&amp;gt; determining those 81 matrix elements I described as necessary in solving &lt;br&gt;
&amp;gt; your problem, but now I have done so.  Given your 3 x 3 matrix, A, do this:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  D = -eye(3);&lt;br&gt;
&amp;gt;  X = repmat(A',3,3);&lt;br&gt;
&amp;gt;  Y = reshape(repmat(reshape(repmat(A.',3,1),1,27),3,1),9,9);&lt;br&gt;
&amp;gt;  Z = X.*Y-eye(9); % Here is the desired 9 x 9 matrix&lt;br&gt;
&amp;gt;  P = reshape(Z\D(:),3,3); % &amp;lt;-- This is the 3 x 3 solution&lt;br&gt;
&amp;gt; .....&lt;br&gt;
------&lt;br&gt;
Here is another alternative that I ought to have thought of before:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;D = -eye(3);&lt;br&gt;
&amp;nbsp;I = floor((3:11)/3);&lt;br&gt;
&amp;nbsp;Z = repmat(A',3,3).*A(I,I).'-eye(9);&lt;br&gt;
&amp;nbsp;P = reshape(Z\D(:),3,3);&lt;br&gt;
&lt;br&gt;
Roger Stafford&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 Nov 2007 21:27:19 -0500</pubDate>
      <title>Re: Matrix Equation solving</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159258#402153</link>
      <author>Bruno Luong</author>
      <description>Alternative solution:&lt;br&gt;
&lt;br&gt;
D=-eye(3);&lt;br&gt;
Z=zeros(3);&lt;br&gt;
BIGA1=[A Z Z; Z A Z; Z Z A]';&lt;br&gt;
BIGA2=reshape(permute(reshape(BIGA1,3,3,3,3),[2 1 4 3]),9,9);&lt;br&gt;
P=reshape((BIGA1*BIGA2-eye(9))\D(:),3,3)&lt;br&gt;
&lt;br&gt;
;-)&lt;br&gt;
Bruno&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Mon, 19 Nov 2007 19:24:53 -0500</pubDate>
      <title>Re: Matrix Equation solving</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159258#402142</link>
      <author>Roger Stafford</author>
      <description>"Roger Stafford" &amp;lt;eleanorandrogerxyzzy@mindspring.com.invalid&amp;gt; wrote in &lt;br&gt;
message &amp;lt;fhna35$9u4$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; "shameer koya" &amp;lt;assigmenteee@yahoo.co.in&amp;gt; wrote in message &amp;lt;fhe92r&lt;br&gt;
$m23&lt;br&gt;
&amp;gt; $1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Please help me to solve the equation&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; A'pA-p = -I&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; A - 3x3 matrix&lt;br&gt;
&amp;gt; &amp;gt; p - 3x3 unknown symetric matrix&lt;br&gt;
&amp;gt; &amp;gt; I - identity matrix&lt;br&gt;
&amp;gt; ----------&lt;br&gt;
&amp;gt; This is, after all, a set of nine linear equations in the nine unknown &lt;br&gt;
elements of &lt;br&gt;
&amp;gt; p, and can therefore be solved by matlab using standard techniques with &lt;br&gt;
the &lt;br&gt;
&amp;gt; backslash operator, with p temporarily considered a 9 x 1 column matrix.  &lt;br&gt;
It is &lt;br&gt;
&amp;gt; only necessary to determine the 81 elements of the corresponding 9 x 9 &lt;br&gt;
matrix.  &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Assuming there is a unique solution, the above equation is of such a nature &lt;br&gt;
that &lt;br&gt;
&amp;gt; the matrix p is guaranteed be Hermitian symmetric.&lt;br&gt;
--------&lt;br&gt;
&amp;nbsp;&amp;nbsp;Shameer, I was too lazy Saturday to work out matlab code for automatically &lt;br&gt;
determining those 81 matrix elements I described as necessary in solving &lt;br&gt;
your problem, but now I have done so.  Given your 3 x 3 matrix, A, do this:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;D = -eye(3);&lt;br&gt;
&amp;nbsp;X = repmat(A',3,3);&lt;br&gt;
&amp;nbsp;Y = reshape(repmat(reshape(repmat(A.',3,1),1,27),3,1),9,9);&lt;br&gt;
&amp;nbsp;Z = X.*Y-eye(9); % Here is the desired 9 x 9 matrix&lt;br&gt;
&amp;nbsp;P = reshape(Z\D(:),3,3); % &amp;lt;-- This is the 3 x 3 solution&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;Note that the repeated 'reshapes' and 'repmats' used in generating matrix Y &lt;br&gt;
above, perform a variant of the 'repmat' operation.  Each individual element &lt;br&gt;
of A is replicated so as to form a local 3 x 3 section of copies, rather than the &lt;br&gt;
entire A being replicated as nine 3 x 3 copies.  There may well be a better &lt;br&gt;
way of accomplishing this but I couldn't think of it.&lt;br&gt;
&lt;br&gt;
Roger Stafford&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Sat, 17 Nov 2007 17:57:57 -0500</pubDate>
      <title>Re: Matrix Equation solving</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159258#401860</link>
      <author>Roger Stafford</author>
      <description>"shameer koya" &amp;lt;assigmenteee@yahoo.co.in&amp;gt; wrote in message &amp;lt;fhe92r$m23&lt;br&gt;
$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Please help me to solve the equation&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A'pA-p = -I&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; A - 3x3 matrix&lt;br&gt;
&amp;gt; p - 3x3 unknown symetric matrix&lt;br&gt;
&amp;gt; I - identity matrix&lt;br&gt;
----------&lt;br&gt;
This is, after all, a set of nine linear equations in the nine unknown elements of &lt;br&gt;
p, and can therefore be solved by matlab using standard techniques with the &lt;br&gt;
backslash operator, with p temporarily considered a 9 x 1 column matrix.  It is &lt;br&gt;
only necessary to determine the 81 elements of the corresponding 9 x 9 matrix.  &lt;br&gt;
&lt;br&gt;
Assuming there is a unique solution, the above equation is of such a nature that &lt;br&gt;
the matrix p is guaranteed be Hermitian symmetric.&lt;br&gt;
&lt;br&gt;
Roger Stafford&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Wed, 14 Nov 2007 07:45:31 -0500</pubDate>
      <title>Matrix Equation solving</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/159258#401165</link>
      <author>shameer koya</author>
      <description>Please help me to solve the equation&lt;br&gt;
&lt;br&gt;
A'pA-p = -I&lt;br&gt;
&lt;br&gt;
A - 3x3 matrix&lt;br&gt;
p - 3x3 unknown symetric matrix&lt;br&gt;
I - identity matrix&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
