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

版本 1.3.1.2 (2.7 KB) 作者: Are Mjaavatten
Fit polynomial p to data, but match exactly at one or more points
4.1K 次下载
更新时间 2020/1/20

查看许可证

编者注: This file was selected as MATLAB Central Pick of the Week

Sometimes we want to fit a polynomial to some data, but want to force a perfect match to some known values at one or more points. This function returns such a polynomial.

引用格式

Are Mjaavatten (2024). polyfix(x,y,n,xfix,yfix,xder,dydx) (https://www.mathworks.com/matlabcentral/fileexchange/54207-polyfix-x-y-n-xfix-yfix-xder-dydx), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Polynomials 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.3.1.2

Changed image

1.3.1.1

Added image

1.3.1.0

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

1.3.0.0

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

1.2.0.0

Fixed trivial errors in the help section

1.1.0.0

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

1.0.0.0