이 제출물을 팔로우합니다
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다
Syntax
[k,r] = pcfit(x,y,n)
y = pcval(k,x)
[k,r] = psfit(x,y,z,n)
z = psval(k,x,y,n)
Description
pcfit Polynomial curve fitting
pcval Polynomial curve evaluation
psfit Polynomial surface fitting
psval Polynomial surface evaluation
k process coefficients
r residuals
x x-coordinate
y y-coordinate
z z-coordinate
n process order
Fast polynomial process fitting and evaluation via linear least squares (LLS). Significant speed increases over the MATLAB's functions for low and medium sized problems at the cost of numerical stability and robustness. The direct resolution of the linear system with iteratively-assembled Vandermonde matrices is the key advantage of the code, as well as the surface evaluation assuming the coefficients form an upper-triangular matrix.
Examples
demo1
demo2
인용 양식
Moreno, M. (2026). Fast Polynomial Curve and Surface Fitting (https://kr.mathworks.com/matlabcentral/fileexchange/113045-fast-polynomial-curve-and-surface-fitting), MATLAB Central File Exchange. 검색 날짜: .
| 버전 | 퍼블리시됨 | 릴리스 정보 | Action |
|---|---|---|---|
| 1.0.3 | Faster residual check without pcval or psval at the cost of no Vandermonde matrix destruction. Replacement of nested linear indices to avoid declaring new variables via destruction. |
||
| 1.0.2 | Optimisation of the surface fitting algorithm and correction of the function description text. |
||
| 1.0.1 | Commented demo codes and addition of the calculation of the absolute fitting error. Faster surface coefficient matrix's non-zero element count via triangular numbers. |
||
| 1.0.0 |
