MATLAB: How to do a spline and divide the spline into points of equal distance

linearspacespline

Hey everybody,
I have a problem concerning my bachelors Thesis and I don't really know what I have to do here…
The task is the following: I want to create a cubic spline through a couple of points, lets say 4 points and have the spline in hundred points of equal distance.
I don't know how to do this, but is there a possibility to to it with one of these functions?
So task is the following:
  • 4 points
  • 100 points inbetween the first and the last one and have them written in an excel file
I need that to do some automatic positioning stuff in a project.
Big thank you for your help in advance!
Johnny

Best Answer

See attached demos.
spline_demo
spline_3d_curve