linfit(vx,vy,F)
Returns a vector containing the parameters used to create a linear combination
of the functions in vector F which best
approximates the data in vx and vy in the least-squares sense.
Arguments:
vx and vy are
vectors of real data values of the same length, corresponding to the x and y-values in the data set. There must be at least as many data points as there are terms in F.
F(x)
is a vector of functions; each element is one linear functional term in
the fit function. In the case of a single linear function, F
is a scalar.
Notes:
The name of the vector of functions is supplied without
its arguments to linfit.