Cubiccs - plot(x,y'o,xnew,ynew1%sometimes need axis to change max compSplinePlot%exampleinbook%

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

View Full Document Right Arrow Icon
%cubic spline x=[ ]; y=[ ]; xnew=linspace(1,max(x),1000); [ynew]=splint(x,y,xnew); plot(x,y,xnew,ynew,'-'); [ynew1]=splint(x,y,xnew,0,0);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot(x,y,'o',xnew,ynew1,'-'); %sometimes need axis to change max compSplinePlot%exampleinbook%...
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