Environmental Engineering Reference
In-Depth Information
c = polyval([0.0015 -0.1078 2.0315],tfit);
normc = norm (cfit-c)
normc =
2.9623
The residual norm for the chosen quadratic polynomial is far above the residual
of the best fit .
Alternatively, curve fitting can be performed from the MATLAB
figure editor.
®
Use the plot command first in order to perform the fitting:
plot (tfit,cfit,'o')
Then click the 'Basic Fitting' submenu in the 'Tools' menu of the figure editor to
obtain the box depicted in Fig. 10.2 .
Fig. 10.2 The 'Basic fitting'
command box
Search WWH ::




Custom Search