FUNCTION REFERENCE

sfit

Create a surface fit object from a fittype and coefficient values.

Create a surface fit object from a fittype and coefficient values.

Syntax

f = sfit(fittype, coefficient1, coefficient2, ..., problem1, ...)

fit returns sfit objects for models of two independent variables. Call f(x, y) or f([x y]); f.p00 reads a coefficient; coeffvalues, confint, predint, differentiate and plot work on it.

Example

f = sfit(fittype('poly11'), 1, 2, 3); f(1, 1)   % 6

Differences from MATLAB: coefficients are read-only; make a new object to change them.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.