Cubic interpolating plane curve or space curve
Simscape / Multibody / Curves and Surfaces
This Spline block creates a continuous spline curve based on cubic interpolation between the specified points. The curve can be two dimensional, such as a planar cam profile, or three dimensional, such as a roller coaster track. The dimension of the spline depends on the dimension of the coordinate matrix. An N-by-2 matrix specifies a 2-D curve in the xy plane. An N-by-3 matrix specifies a 3-D curve. All the coordinates are resolved in the local reference frame of the block. Moreover, according to the specified end conditions, the curve can be either open or closed.