Title | An algorithm for generating the design matrix for multivariate polynomial least squares fitting |
Publication Type | Journal Article |
Year of Publication | 2007 |
Authors | Al-Hamdan, SF |
Journal | Journal of Digital Information Management |
Volume | 5 |
Issue | 4 |
Pagination | 225 - 230 |
Date Published | 2007 |
Keywords | Curve fitting, MATLAB, Multivariate polynomial fitting, Numerical algorithms |
Abstract | This paper presents an algorithm for generating the design matrix that is usually used for multivariate polynomial least square fitting. The design matrix is used in least squares fitting algorithm to construct a set of linear equations whose solution is the required polynomial coefficients. The developed algorithm was coded in MATLAB. The coded function named mv∝lyfit(X,Y,ord) accepts as inputs two matrices: the first argument is a 2D matrix of the independent variable X, the second argument is the dependent variable vector Y, and the last argument is the required degree of the fitting polynomial. The function returns the coefficient vector C and the design matrix A. Number of data points (k) needed for the function should be large enough for the solution of the set of linear equations to exist. |
URL | http://www.scopus.com/inward/record.url?eid=2-s2.0-44949259846&partnerID=40&md5=70df949826a1c381c4c629a148ad7e1e |