{"id":506,"date":"2017-09-14T13:13:55","date_gmt":"2017-09-14T16:13:55","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=506"},"modified":"2017-09-14T13:13:55","modified_gmt":"2017-09-14T16:13:55","slug":"trapint-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/trapint-m\/","title":{"rendered":"trapint.m"},"content":{"rendered":"<pre>function z = trapint(x, y)\r\n% Trapezoidal integration of (x,y) data\r\n% UNEQUALLY SPACED DATA\r\n%\r\n% USAGE:  z = trapint(x,y)\r\n%\r\n% input:   x = vector of x values\r\n%          y = vector of y values\r\n%\r\n% output:  z = value of integral\r\n\r\nn = length(x);\r\n\r\nisum = 0;\r\n\r\nfor i = 1:n-1\r\n  isum = isum + (y(i) + y(i+1))*(x(i+1) - x(i))\/2;\r\nend\r\n\r\nz = isum;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>function z = trapint(x, y) % Trapezoidal integration of (x,y) data % UNEQUALLY SPACED DATA % % USAGE: z = trapint(x,y) % % input: x = vector of x values % y = vector of y values % % output: z = value of integral n = length(x); isum = 0; for i = 1:n-1 [&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-506","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/506","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=506"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/506\/revisions"}],"predecessor-version":[{"id":507,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/506\/revisions\/507"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}