polyfix(x,y,n,xfix,​yfix,xder,dydx)

Fit polynomial p to data, but match exactly at one or more points

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Are Mjaavatten (2026). polyfix(x,y,n,xfix,yfix,xder,dydx) (https://se.mathworks.com/matlabcentral/fileexchange/54207-polyfix-x-y-n-xfix-yfix-xder-dydx), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Bayesian Inference from Hans Bathe

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.3.1

Changed image

Download
1.3.1-1

Added image

Download
1.3.1-0

Fixed the error in version 1.3.0.0 pointed out by Jacob Bresler.

Download
1.3.0

As requested by Jacob Bresler, I have added optional outputs S and mu, to make the output from polyfix conform with polyfit

Download
1.2.0

Fixed trivial errors in the help section

Download
1.1.0

Version 1.1 includes an option for specifying derivatives. p is now a row vector, for consistency with polyfit

Download
1.0.0

Download