PDA

Click to See Complete Forum and Search --> : spline hell :-(


deviousrich
Dec 10th, 2002, 11:18 AM
Hi evyerone,

I have two sets of discrete points (vectors X, Y) that when plotted draw a nice pretty picture, what i want to do is smoth this out using splines. I know that the arclength between two points can be cal as

s(i+1) = sqrt( ((x(I) - X(i-1))^2) + ((y(I) - y(i-1))^2)

but what i need to do is plot the splines, Any one out there good with splines?
im using matlab for the computations so any sugestions with matlab code would be great.

Thanks for all you help

Richard

krtxmrtz
Dec 11th, 2002, 06:25 AM
I don't use MatLab but I posted a spline routine not long ago. Take a look and see if it's any good for you.

http://www.vbforums.com/showthread.php?s=&threadid=203852&highlight=spline

Good luck.