Legendre polynomial fitting
by Siqing Wu
31 Jul 2008
(Updated 31 Jul 2008)
Fitting data using a linear combination of Legendre polynomials
|
Watch this File
|
| File Information |
| Description |
Finds the weighting coefficients of the linear combination of a set of Legendre polynomials up to order N.
Three methods are available (actually just for fun): 'inv' (default) inverts the normal equation matrix directly, while 'chol' and 'qr' find the solution via Cholesky and QR decomposition, respectively. Although arbitrary large order is supported, usually small N suffices. Computation for Pearson's correlation coefficient and RMSE is also available.
(If you've downloaded an earlier version of this code, please replace it with this one.) |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (2) |
| 01 Aug 2008 |
Dimitri Shvorob
|
|
|
| 01 Aug 2008 |
Siqing Wu
|
|
|
|
Contact us at files@mathworks.com