Docs @ Psychtoolbox Wiki : poly2fit

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

poly2fit

PsychtoolboxPsychGLImageProcessingprivate

POLY2FIT POLY2FIT(x,y,z,n) finds the coefficients of a two-dimensional
polynomial formed from the data in the matrices x and y
that fits the data in the matrix z in a least-squares sense.
The coefficients are returned in the vector p, in descending
powers of x and y. For example, the second order polynomial

x ^ 2 + xy +2x -3 y - 1

would be returned as p = [ 1 1 0 2 -3 -1 ]




Path
Psychtoolbox/PsychGLImageProcessing/private/poly2fit.m

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0444 seconds