Spline
R2026bCubic interpolating plane curve or space curve
Libraries:
Simscape /
Multibody /
Curves and Surfaces
Description
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.

Examples
Ports
Frame
Geometry
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"sm_lib/Curves and Surfaces/Spline"
Example: add_block("sm_lib/Curves and Surfaces/Spline","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2015b

