polyreg - Data Points Nth Order Polynomial Regression

This function fits a polynomial of order n to a given data points (x,y) using regression techniques
83.0 次下载
更新时间 2019/1/1

查看许可证

% polyreg
% This function fits a polynomial of order n to a given data points (x,y)
% using regression techniques
% ----------------------------------------------
% inputs
% x x points
% y f(x)
% n polynomial order; 1 for linear
% ----------------------------------------------
% output
% sol.constants constants that need to be found
% sol.fn curve fittin-g function
% sol.syx the standard erro of the estimate
% sol.sr the best fit criterion
% sol.r2 the coefficient of determination; 1 is the best value
% sol.std standard deviation
% ----------------------------------------------
% Example
% x=[1,4,2,4];
% y=[.9 3 10 15];
% n=1;
% sol = polyreg(x,y,n);
% ----------------------------------------------
%
% All copyrights goes to Mohammad Al-Fetyani
% University of Jordan

引用格式

Mohammad Al-Fetyani (2024). polyreg - Data Points Nth Order Polynomial Regression (https://www.mathworks.com/matlabcentral/fileexchange/69862-polyreg-data-points-nth-order-polynomial-regression), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Linear and Nonlinear Regression 的更多信息
标签 添加标签

Community Treasure Hunt

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

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