Least Squares Polynomial Fitting for Noisy Data

版本 1.0.0 (3.6 KB) 作者: Manuel A. Diaz
This snippet exemplifies the use of a custom LU decomposition method to produce a k-order polynomial fit to noisy data.
156.0 次下载
更新时间 2021/4/28

查看许可证

This snippet, is in reality the initial prototype I used for building my polynomial least squares class/module in C and Fortran, respectively. As you'll see, it matches perfectly the outputs for Matlab's polyval() and lu() functions. Although, is a very minimalist implementation of the LU decomposition method, it sometimes beats the polyval() function in speed. (Not sure why?!)

To understand how to use it, check out the example : FitPolynomialToNoisyData.m
( In it, I compare this implementation to Matlab's traditional tools/approaches )

Check it out! ;D

引用格式

Manuel A. Diaz (2024). Least Squares Polynomial Fitting for Noisy Data (https://www.mathworks.com/matlabcentral/fileexchange/91205-least-squares-polynomial-fitting-for-noisy-data), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux

Community Treasure Hunt

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

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