{"id":432,"date":"2017-09-14T12:18:56","date_gmt":"2017-09-14T15:18:56","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=432"},"modified":"2017-09-14T12:18:56","modified_gmt":"2017-09-14T15:18:56","slug":"symmeig-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/symmeig-m\/","title":{"rendered":"symmeig.m"},"content":{"rendered":"<pre>function [Q, LAMBDA] = symmeig(A)\r\n\r\n% symmeig  Eigenvalues and eigenvectors of a symmetric matrix.\r\n% The matrix A is assumed to be symmetric.\r\n%\r\n% Q = symmeig(A) returns a set of orthonormal eigenvectors for A.\r\n%\r\n% [Q, LAMBDA] = symmeig(A) also returns the corresponding eigenvalues \r\n% on the diagonal of LAMBDA. The eigenvalues in LAMBDA are in \r\n% decreasing order.\r\n%\r\n% See also eigval, eigvec, eig.\r\n\r\n[m, n] = size(A);\r\nif norm(A'-A) &lt;= sqrt(eps)\r\n%\r\n% The eigenvectors in S are linearly independent but not orthogonal.\r\n% Eigenvectors for different eigenvalues *are* orthogonal.\r\n% Gram-Schmidt (qr(S)) gives orthonormal eigenvectors in Q.\r\n%\r\n  [S, LAMBDA] = eigvec(A);\r\n  [Q, R] = qr(S);\r\nelse\r\n  Q = []; LAMBDA = [];\r\n  error('The matrix is not symmetric.');\r\nend<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function [Q, LAMBDA] = symmeig(A) % symmeig Eigenvalues and eigenvectors of a symmetric matrix. % The matrix A is assumed to be symmetric. % % Q = symmeig(A) returns a set of orthonormal eigenvectors for A. % % [Q, LAMBDA] = symmeig(A) also returns the corresponding eigenvalues % on the diagonal of LAMBDA. The eigenvalues [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[],"tags":[],"class_list":["post-432","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/comments?post=432"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/432\/revisions"}],"predecessor-version":[{"id":433,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/432\/revisions\/433"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}