{"id":363,"date":"2017-09-14T11:57:58","date_gmt":"2017-09-14T14:57:58","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=363"},"modified":"2017-09-14T11:57:58","modified_gmt":"2017-09-14T14:57:58","slug":"cofactor-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/cofactor-m\/","title":{"rendered":"cofactor.m."},"content":{"rendered":"<pre>function C = cofactor(A, i, j)\r\n\r\n% cofactor  Matrix of cofactors.\r\n%\r\n% C = cofactor(A) returns the matrix of cofactors of A.\r\n% If A is invertible, then inv(A) = C' \/ det(A).\r\n%\r\n% C = cofactor(A, i, j) returns the cofactor of \r\n% row i, column j of A.\r\n\r\nif nargin == 3\r\n% Remove row i and column j to produce the minor.\r\n  M = A;\r\n  M(i,:) = [];\r\n  M(:,j) = [];\r\n  C = (-1)^(i+j) * det(M);\r\nelse\r\n  [n,n] = size(A);\r\n  for i = 1:n\r\n    for j = 1:n\r\n    C(i,j) = cofactor(A, i, j);\r\n    end\r\n  end\r\nend<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function C = cofactor(A, i, j) % cofactor Matrix of cofactors. % % C = cofactor(A) returns the matrix of cofactors of A. % If A is invertible, then inv(A) = C&#8217; \/ det(A). % % C = cofactor(A, i, j) returns the cofactor of % row i, column j of A. if nargin == [&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-363","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/363","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=363"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/363\/revisions"}],"predecessor-version":[{"id":364,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/363\/revisions\/364"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}