| Description |
You have a data matrix D. You want to find its approximation, matrix SUR same size as D, by a bipolynomial P(X,Y), having orders ORDHOR in horizontal and ORDVER in vertical directions. Bipolynomial is a matrix of coefficients before bipolynomial terms X^(m)*Y(n),
n<=ORDVER
m<=ORDHOR
Solution:
SUR = surfit(D,ORDVER,ORDHOR);
ORDVER: default 1
ORDHOR: default ORDVER
compare the result with:
BIP=bipfit(D,[ORDVER,ORDHOR])
SUR=bipval(BIP,size(D)); |