{"id":404,"date":"2017-09-14T12:11:49","date_gmt":"2017-09-14T15:11:49","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=404"},"modified":"2017-09-14T12:11:49","modified_gmt":"2017-09-14T15:11:49","slug":"partic-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/partic-m\/","title":{"rendered":"partic.m"},"content":{"rendered":"<pre>function x = partic(A, b)\r\n\r\n% partic  Particular solution of Ax=b.\r\n%\r\n% x = partic(A, b) returns a particular solution to Ax=b.\r\n% This particular solution has all free variables set to zero.\r\n% An empty vector is returned if Ax=b is not solvable.\r\n%\r\n% See also slash as in A\\b .\r\n\r\n[m, n] = size(A);\r\n[Rd, pivcol] = rref([A b]);\r\nr = length(pivcol);\r\n%\r\n% If the last column of the augmented matrix [A b] \r\n% is a pivot column, then Ax=b has no solution.\r\n%\r\nif max(pivcol) == n+1\r\n  x = [];\r\nelse\r\n%\r\n% The values of the pivot variables are in the\r\n% last column (which is called d) of Rd.\r\n% The free variables are zero in this particular solution.\r\n%\r\n  x = zeros(n, 1);\r\n  d = Rd(:, n+1);\r\n  x(pivcol) = d(1:r);\r\nend<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function x = partic(A, b) % partic Particular solution of Ax=b. % % x = partic(A, b) returns a particular solution to Ax=b. % This particular solution has all free variables set to zero. % An empty vector is returned if Ax=b is not solvable. % % See also slash as in A\\b . [m, [&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-404","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/404","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=404"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/404\/revisions"}],"predecessor-version":[{"id":405,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/404\/revisions\/405"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=404"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=404"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=404"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}