{"id":391,"date":"2017-09-14T12:05:49","date_gmt":"2017-09-14T15:05:49","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=391"},"modified":"2017-09-14T12:05:49","modified_gmt":"2017-09-14T15:05:49","slug":"inverse-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/inverse-m\/","title":{"rendered":"inverse.m"},"content":{"rendered":"<pre>function Ainv = inverse(A)\r\n\r\n% inverse  Matrix inverse by Gauss-Jordan elimination.\r\n%\r\n% Ainv = inverse(A) computes the inverse of A, if it exists.\r\n%\r\n% Row reduction applied to [A I] using elim produces [I Ainv].\r\n%\r\n% See also inv, elim. \r\n\r\n[m, n] = size(A);\r\nr = rank(A);\r\nif (r == m) &amp; (r == n) \r\n  [Ainv, R] = elim(A);\r\nelse\r\n  Ainv = [];\r\n  disp('Warning: A is not a square, invertible matrix.');\r\nend;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function Ainv = inverse(A) % inverse Matrix inverse by Gauss-Jordan elimination. % % Ainv = inverse(A) computes the inverse of A, if it exists. % % Row reduction applied to [A I] using elim produces [I Ainv]. % % See also inv, elim. [m, n] = size(A); r = rank(A); if (r == m) &amp; [&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-391","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/391","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=391"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/391\/revisions"}],"predecessor-version":[{"id":392,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/391\/revisions\/392"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=391"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=391"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=391"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}