spline - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

spline

randomguyrandomguy Posts: 1Member
how do i calculate the quadratic spline of a set of data in matlab. i want to plot the resulting functions.

i can do it for linear with

x = [10 13 14 15 18 20 25];
y = [11 15 16 14 24 34 36];
cs = spline(x,[0 y 0]);
xx = [10 13 14 15 18 20 25];
plot(x,y,'o',x,ppval(cs,x),'-');

but i want spline with degree 2

thanks.
Sign In or Register to comment.