<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/307566</link>
    <title>MATLAB Central Newsreader - help on eigen values</title>
    <description>Feed for thread: help on eigen values</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2013 by 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>MathWorks</title>
      <url>http://www.mathworks.es/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Tue, 10 May 2011 22:42:06 +0000</pubDate>
      <title>help on eigen values</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/307566#835330</link>
      <author>meena rao</author>
      <description>Hi&lt;br&gt;
&lt;br&gt;
I have a 7X7 matrix (temp) with the following values.&lt;br&gt;
&lt;br&gt;
2.0082	0.79279	1.8691	1.7958	-1.0791	10.31	7.785&lt;br&gt;
0.87496	0.72739	0.85899	0.83214	0.53583	1.7803	1.9835&lt;br&gt;
-4.2761	-3.6621	-4.2281	-4.0781	-2.926	-7.8672	-9.4534&lt;br&gt;
4.8772	2.6568	4.6296	4.4343	-0.69886	19.897	18.487&lt;br&gt;
-4.723	-0.65076	-4.2237	-3.9354	5.7739	-33.167	-34.238&lt;br&gt;
4.1391	-7.9086	2.5553	1.9767	-27.555	90.26	92.619&lt;br&gt;
1.4833	-15.29	-0.77169	-1.493	-42.927	122.31	128.62&lt;br&gt;
&lt;br&gt;
I need to find the eigen values of this matrix and i have used the code,&lt;br&gt;
&lt;br&gt;
&amp;nbsp;lamda1= eig(temp)&lt;br&gt;
&amp;nbsp;finalmean=mean(lamda1)&lt;br&gt;
&lt;br&gt;
Now the values displayed on the command prompt is,&lt;br&gt;
&lt;br&gt;
228.4188&lt;br&gt;
-4.6455&lt;br&gt;
3.8133&lt;br&gt;
0.0084&lt;br&gt;
0.0041&lt;br&gt;
0&lt;br&gt;
0&lt;br&gt;
&amp;nbsp;&amp;nbsp;and the values in the workspace of lamda1 is,&lt;br&gt;
&lt;br&gt;
228.42&lt;br&gt;
-4.6455&lt;br&gt;
3.8133&lt;br&gt;
0.0083723&lt;br&gt;
0.0040799&lt;br&gt;
5.53E-09&lt;br&gt;
-5.99E-08&lt;br&gt;
&lt;br&gt;
Is the value in the workspace of lamda1 is right. And i am calling the right function to get the eigen values of a matrix.&lt;br&gt;
&lt;br&gt;
Thanks and regards&lt;br&gt;
&lt;br&gt;
meena.</description>
    </item>
    <item>
      <pubDate>Tue, 10 May 2011 22:48:04 +0000</pubDate>
      <title>Re: help on eigen values</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/307566#835331</link>
      <author>John D'Errico</author>
      <description>"meena rao" &amp;lt;meenaraos@yahoo.co.in&amp;gt; wrote in message &amp;lt;iqcevu$mqk$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I have a 7X7 matrix (temp) with the following values.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 2.0082	0.79279	1.8691	1.7958	-1.0791	10.31	7.785&lt;br&gt;
&amp;gt; 0.87496	0.72739	0.85899	0.83214	0.53583	1.7803	1.9835&lt;br&gt;
&amp;gt; -4.2761	-3.6621	-4.2281	-4.0781	-2.926	-7.8672	-9.4534&lt;br&gt;
&amp;gt; 4.8772	2.6568	4.6296	4.4343	-0.69886	19.897	18.487&lt;br&gt;
&amp;gt; -4.723	-0.65076	-4.2237	-3.9354	5.7739	-33.167	-34.238&lt;br&gt;
&amp;gt; 4.1391	-7.9086	2.5553	1.9767	-27.555	90.26	92.619&lt;br&gt;
&amp;gt; 1.4833	-15.29	-0.77169	-1.493	-42.927	122.31	128.62&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I need to find the eigen values of this matrix and i have used the code,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  lamda1= eig(temp)&lt;br&gt;
&amp;gt;  finalmean=mean(lamda1)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Now the values displayed on the command prompt is,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 228.4188&lt;br&gt;
&amp;gt; -4.6455&lt;br&gt;
&amp;gt; 3.8133&lt;br&gt;
&amp;gt; 0.0084&lt;br&gt;
&amp;gt; 0.0041&lt;br&gt;
&amp;gt; 0&lt;br&gt;
&amp;gt; 0&lt;br&gt;
&amp;gt;   and the values in the workspace of lamda1 is,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 228.42&lt;br&gt;
&amp;gt; -4.6455&lt;br&gt;
&amp;gt; 3.8133&lt;br&gt;
&amp;gt; 0.0083723&lt;br&gt;
&amp;gt; 0.0040799&lt;br&gt;
&amp;gt; 5.53E-09&lt;br&gt;
&amp;gt; -5.99E-08&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is the value in the workspace of lamda1 is right. And i am calling the right function to get the eigen values of a matrix.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks and regards&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; meena.&lt;br&gt;
&lt;br&gt;
help format</description>
    </item>
    <item>
      <pubDate>Wed, 11 May 2011 13:41:20 +0000</pubDate>
      <title>Re: help on eigen values</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/307566#835433</link>
      <author>Steven_Lord</author>
      <description>&lt;br&gt;
&lt;br&gt;
"meena rao" &amp;lt;meenaraos@yahoo.co.in&amp;gt; wrote in message &lt;br&gt;
news:iqcevu$mqk$1@newscl01ah.mathworks.com...&lt;br&gt;
&amp;gt; Hi&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I have a 7X7 matrix (temp) with the following values.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2.0082 0.79279 1.8691 1.7958 -1.0791 10.31 7.785&lt;br&gt;
&amp;gt; 0.87496 0.72739 0.85899 0.83214 0.53583 1.7803 1.9835&lt;br&gt;
&amp;gt; -4.2761 -3.6621 -4.2281 -4.0781 -2.926 -7.8672 -9.4534&lt;br&gt;
&amp;gt; 4.8772 2.6568 4.6296 4.4343 -0.69886 19.897 18.487&lt;br&gt;
&amp;gt; -4.723 -0.65076 -4.2237 -3.9354 5.7739 -33.167 -34.238&lt;br&gt;
&amp;gt; 4.1391 -7.9086 2.5553 1.9767 -27.555 90.26 92.619&lt;br&gt;
&amp;gt; 1.4833 -15.29 -0.77169 -1.493 -42.927 122.31 128.62&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I need to find the eigen values of this matrix and i have used the code,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; lamda1= eig(temp)&lt;br&gt;
&amp;gt; finalmean=mean(lamda1)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Now the values displayed on the command prompt is,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 228.4188&lt;br&gt;
&amp;gt; -4.6455&lt;br&gt;
&amp;gt; 3.8133&lt;br&gt;
&amp;gt; 0.0084&lt;br&gt;
&amp;gt; 0.0041&lt;br&gt;
&amp;gt; 0&lt;br&gt;
&amp;gt; 0&lt;br&gt;
&amp;gt;  and the values in the workspace of lamda1 is,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 228.42&lt;br&gt;
&amp;gt; -4.6455&lt;br&gt;
&amp;gt; 3.8133&lt;br&gt;
&amp;gt; 0.0083723&lt;br&gt;
&amp;gt; 0.0040799&lt;br&gt;
&amp;gt; 5.53E-09&lt;br&gt;
&amp;gt; -5.99E-08&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Is the value in the workspace of lamda1 is right. And i am calling the &lt;br&gt;
&amp;gt; right function to get the eigen values of a matrix.&lt;br&gt;
&lt;br&gt;
EIG is one of the correct functions to compute the eigenvalues of a matrix; &lt;br&gt;
for the type of matrix you have, it is the one I recommend you use.&lt;br&gt;
&lt;br&gt;
To confirm that lamda1 (BTW if you were looking to spell the Greek character &lt;br&gt;
it's lambda1 not lamda1) is the vector of eigenvalues, call EIG with two &lt;br&gt;
outputs:&lt;br&gt;
&lt;br&gt;
[eigenvectors, eigenvalues] = eig(temp);&lt;br&gt;
&lt;br&gt;
Now you know that an eigenvalue lambda and its corresponding eigenvector V &lt;br&gt;
must satisfy the following equation:&lt;br&gt;
&lt;br&gt;
temp*V = lambda*V&lt;br&gt;
&lt;br&gt;
So check this.&lt;br&gt;
&lt;br&gt;
result = temp*eigenvectors-eigenvalues*eigenvectors&lt;br&gt;
&lt;br&gt;
All the elements of this result should be "small" -- if so you have &lt;br&gt;
eigenvalues and eigenvectors.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Steve Lord&lt;br&gt;
slord@mathworks.com&lt;br&gt;
To contact Technical Support use the Contact Us link on &lt;br&gt;
&lt;a href="http://www.mathworks.com"&gt;http://www.mathworks.com&lt;/a&gt; </description>
    </item>
    <item>
      <pubDate>Wed, 11 May 2011 15:34:05 +0000</pubDate>
      <title>Re: help on eigen values</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/307566#835446</link>
      <author>Roger Stafford</author>
      <description>"meena rao" &amp;lt;meenaraos@yahoo.co.in&amp;gt; wrote in message &amp;lt;iqcevu$mqk$1@newscl01ah.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; ......&lt;br&gt;
&amp;gt; Is the value in the workspace of lamda1 is right. .....&lt;br&gt;
&amp;gt; ......&lt;br&gt;
- - - - - - - - -&lt;br&gt;
&amp;nbsp;&amp;nbsp;Meena, it is very important for Matlab users to understand the difference between the actual binary floating point value of a quantity stored within memory and a displayed approximate decimal representation of that quantity.  The stored value is what is actually used in computation, while the displayed value is only an approximate indication of its value for the user's benefit.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;As John has indicated, the accuracy of such displays is controlled by the 'format' setting.  The default "format short" gives four digits after the decimal point while "format long" for example gives about 14 places after the decimal point (for 'double' numbers.)  The only one of the 'format' settings that is guaranteed to give the precise value is "format hex", but unfortunately that is difficult to interpret for persons accustomed to decimal numbers.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;Here's an example using the quantity 'pi'.  With the default "format short" it is displayed as "3.1416", with "format long" it is shown as "3.14159265358979", and with "format hex" it appears as a rather mysterious "400921fb54442d18".  Only this last is a precise representation of the true stored value.  If this were given as a binary fraction it would be the mind-boggling 53-bit number:&lt;br&gt;
&lt;br&gt;
&amp;nbsp;1.1001001000011111101101010100010001000010110100011000&lt;br&gt;
&lt;br&gt;
and this is what actually would be used in computation with 'pi'.  This should show you why more compact representations are desirable for display purposes.&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;(Of course, since the true mathematical pi is a transcendental number, even the above binary number is only an approximation accurate to 53 bits - the best that double precision floating point can do.)&lt;br&gt;
&lt;br&gt;
Roger Stafford</description>
    </item>
    <item>
      <pubDate>Thu, 12 May 2011 09:15:19 +0000</pubDate>
      <title>Re: help on eigen values</title>
      <link>http://www.mathworks.es/matlabcentral/newsreader/view_thread/307566#835537</link>
      <author>Greg von Winckel</author>
      <description>&amp;gt; I need to find the eigen values of this matrix and i have used the code,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt;  lamda1= eig(temp)&lt;br&gt;
&amp;gt;  finalmean=mean(lamda1)&lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
I don't know what your application is, but I see you compute the mean of the eigenvalues. If you only needed this value for whatever reason and not the individual eigenvalues, you could obtain it more quickly with trace(A)/size(A,1)</description>
    </item>
  </channel>
</rss>
