{"id":499,"date":"2017-09-14T13:12:40","date_gmt":"2017-09-14T16:12:40","guid":{"rendered":"http:\/\/www.professores.uff.br\/diomarcesarlobao\/?page_id=499"},"modified":"2017-09-14T13:12:40","modified_gmt":"2017-09-14T16:12:40","slug":"splineex-m","status":"publish","type":"page","link":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/splineex-m\/","title":{"rendered":"splineex.m"},"content":{"rendered":"<pre>% demonstrate spline and polyint functions\r\n\r\nclear;                                 % clear variables\r\n\r\nmin = -5;                              % range of x values\r\nmax = 5;\r\nx = min:1:max;                         % define x values\r\n\r\ny = sin(x);\t                       % define y values\r\n\r\nxi = min:0.1:max;                      % x values to be interpolated at\r\nyi = spline(x,y,xi);                   % spline interpolation\r\nyii = polyint(x,y,xi);                 % polynomial interpolation\r\n\r\nplot (x,y,'o',xi,yi,'-',xi,yii,'-.');  % plot and compare\r\n\r\nlegend('raw data','cubic spline','poly inter');<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>% demonstrate spline and polyint functions clear; % clear variables min = -5; % range of x values max = 5; x = min:1:max; % define x values y = sin(x); % define y values xi = min:0.1:max; % x values to be interpolated at yi = spline(x,y,xi); % spline interpolation yii = polyint(x,y,xi); % [&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-499","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/499","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=499"}],"version-history":[{"count":1,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/499\/revisions"}],"predecessor-version":[{"id":500,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/pages\/499\/revisions\/500"}],"wp:attachment":[{"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/media?parent=499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/categories?post=499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.professores.uff.br\/diomarcesarlobao\/wp-json\/wp\/v2\/tags?post=499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}