Skip to main content
1-Visitor
Solved

Spline fit

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

RichardJAnswer
19-Tanzanite

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.

6 replies

RichardJ19-TanzaniteAnswer
19-Tanzanite

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.

Translate
swahlgren1-VisitorAuthor
1-Visitor

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

Translate
19-Tanzanite

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.

Translate
24-Ruby IV

Spline fit a strange name. Must be spline interpolation!

Translate
19-Tanzanite

Must be spline interpolation!

Not if it's a least squares spline.

Translate