WOLFRAM

Products
  • Wolfram|One
  • Mathematica
  • Wolfram Notebook Assistant + LLM Kit
  • Wolfram|Alpha Notebook Edition
  • System Modeler
  • All Products
Consulting & Solutions
  • Wolfram Consulting
  • Industry Solutions
  • Solutions for Education
Learning & Support
  • Wolfram U Courses
  • Wolfram Language Resources
  • Wolfram Community
  • Support FAQs
  • Contact Support
Company
  • About Wolfram
  • Careers
  • Events
  • Educational Programs
  • All Sites and Resources
Wolfram|Alpha
Wolfram Cloud
Your Account
  • Your Account
  • User Portal
Search

Mechanical Systems  / Function Index  /
Previous section-----Next section

SplineFit
2D/3D

• SplineFit[data, options] generates a SplineFunction object representing the data as a cubic spline.

• data is given as rectangular matrix of numbers, that is, a list of coordinates.
• For a 2D spline curve data is given as a list of 2D vectors; for a 3D spline data is a list of 3D vectors.
• SplineFit works with data of any dimensionality, not only 2D or 3D.
• The following options can be given:

• See also: ArcLength.

Further Examples

Load the Modeler2D package.

In[1]:=

Create a SplineFunction representing the path between a sequence of 2D points, and evaluate it halfway between the first and second points. Each end of the spline will have zero curvature.

In[2]:=
Out[3]=
Out[4]=

The spline is a 2D parametric function, and can be plotted as such.

In[5]:=

Out[5]=

Here is a spline with the ends closed upon themselves.

In[6]:=
Out[6]=

Here is a spline with specific direction vectors at the ends.

In[7]:=
Out[7]=

Here are all three splines shown together.

In[8]:=

Out[8]=

Here is a SplineFunction with values given for the independent variable at each knot point.

In[9]:=
Out[9]=
In[10]:=
Out[10]=

Here is the arc length of the spline, also expressed as a function of the independent variable.

In[11]:=
Out[11]=
Out[12]=
In[13]:=


  • Products
  • Wolfram|One
  • Mathematica
  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps
  • Finance Platform
  • System Modeler
  • Wolfram Player
  • Wolfram Engine
  • WolframScript
  • Wolfram Workbench
  • Volume & Site Licensing
  • Enterprise Private Cloud
  • Application Server
  • View all...
  • Services
  • Technical Consulting
  • Corporate Consulting
  • For Customers
  • Online Store
  • Product Registration
  • Product Downloads
  • Service Plans Benefits
  • User Portal
  • Your Account
  • Support
  • Support FAQ
  • Customer Service
  • Contact Support
  • Learning
  • Wolfram Language Documentation
  • Wolfram Language Introductory Book
  • Get Started with Wolfram
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Webinars & Training
  • Wolfram U
  • Summer Programs
  • Videos
  • Books
  • Public Resources
  • Wolfram|Alpha
  • Demonstrations Project
  • Resource System
  • Connected Devices Project
  • Wolfram Data Drop
  • Wolfram + Raspberry Pi
  • Wolfram Science
  • Computer-Based Math
  • MathWorld
  • Hackathons
  • Computational Thinking
  • View all...
  • Company
  • Events
  • About Wolfram
  • Careers
  • Contact
  • Connect
  • Wolfram Community
  • Wolfram Blog
  • Newsletter
© 2025 Wolfram
  • Legal & Privacy Policy
  • Site Map
  • WolframAlpha.com
  • WolframCloud.com