Builtinterp - p y2=interp1(x,y,x1'spline plot(x,y'o,x1,y2%spline with notaKnot end condition p

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

This note was uploaded on 09/11/2011 for the course MECH 231 taught by Professor Den during the Spring '11 term at Rutgers.

Ask a homework question - tutors are online