{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

builtinterp - p y2=interp1(x,y,x1'spline...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
%interp functions x=linspace(0,1.5,10); y=humps(x); x1=linspace(min(x),max(x)); y1=interp1(x,y,x1,'nearest'); plot(x,y,'o',x1,y1,'-');%%linear%%
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: p y2=interp1(x,y,x1,'spline'); plot(x,y,'o',x1,y2,'-');%%spline with notaKnot end condition p...
View Full Document

{[ snackBarMessage ]}