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
88 Downloads
Aktualisiert 1. Jan 2019

Lizenz anzeigen

% 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

Zitieren als

Mohammad Al-Fetyani (2026). polyreg - Data Points Nth Order Polynomial Regression (https://de.mathworks.com/matlabcentral/fileexchange/69862-polyreg-data-points-nth-order-polynomial-regression), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen
Version Veröffentlicht Versionshinweise
1.0.0