Fitting polynomial passing through a fixed point
Version 1.0.0.0 (1.33 KB) by
Yajun Wei
This function will fit a polynomial passing though a fixed point using least square method
Syntax:
P = polyfix(xi,yi,x0,y0,m)
This function fits a polynomial passing thru a fixed point of (x0, y0).
(xi, yi) are the data points to be fited.
It will give a result vector of P = [P1,P2,P3,...,Pm,Pm+1], corresponding to the polynomial of:
y = P1 x^m + P2 x^(m-1) + ,..., + Pm x + Pm+1
Please note that xi, and yi must be one dimensional vectors. Multidimensional data is not yet supported in this version.
Cite As
Yajun Wei (2026). Fitting polynomial passing through a fixed point (https://www.mathworks.com/matlabcentral/fileexchange/35018-fitting-polynomial-passing-through-a-fixed-point), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Elementary Math > Polynomials >
Find more on Polynomials in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
