Skip to main content
1-Visitor
February 4, 2016
Solved

Spline fit

  • February 4, 2016
  • 2 replies
  • 3982 views

I'm familiar with using the spline and interp functions in Mathcad to use spline-interpolation of a dataset. Considering a situation where the dataset is noisy, I'd like to be able to fit a spline of n-degrees of freedom rather than creating a spline that goes through all datapoints. I can't find any help in the Mathcad documentation so input from you guys would be much appreciated.

I can see it exists for Matlab: File Exchange - MATLAB Central

Best answer by RichardJ

In Mathcad 15, go to "Help", "E-books", "Data Analysis Extension Pack", Under "Non-parametric fitting / Interpolation", choose "B-Splines and Least-Squares Splines". If you are using Prime I'll have to figure out where the information is.

2 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite
February 4, 2016

In Mathcad 15, go to "Help", "E-books", "Data Analysis Extension Pack", Under "Non-parametric fitting / Interpolation", choose "B-Splines and Least-Squares Splines". If you are using Prime I'll have to figure out where the information is.

swahlgren1-VisitorAuthor
1-Visitor
February 4, 2016

I'm afraid no E-books are available for me, can it be attached here?

19-Tanzanite
February 4, 2016

Which version of Mathcad are you using?

Here's the relevant section, but if you don't have the Data Analysis Extension pack installed then spline2 will not work.

24-Ruby IV
February 4, 2016

Spline fit a strange name. Must be spline interpolation!

19-Tanzanite
February 4, 2016

Must be spline interpolation!

Not if it's a least squares spline.