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.
200 Downloads
Updated 18 Jul 2012

View License

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 (2024). 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 Linux
Categories
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0