pregress.m
Version 1.0.0.0 (1.55 KB) by
Elizabeth
A Matlab function pregress.m to carry out linear regression for an arbitrary
order n polynomial.
FUNCTION INPUTS:
* a set of data points (xi; yi), for i=1:N
* the order of the fit
FUNCTION OUTPUT:
* should output the estimated polynomial coefficients.
USES:
* Use the regression function to fit a polynomial globally (i.e., to the entire data set).
* Plot the fitted polynomial (using a continuous line) on top of your actual data points marked as discrete symbols. * Experiment with the order n and observe the quality of your results.
Cite As
Elizabeth (2026). pregress.m (https://www.mathworks.com/matlabcentral/fileexchange/37540-pregress-m), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2011a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Linear and Nonlinear Regression 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 |
