MATLAB CURVE FITTING TOOLBOX - RELEASE NOTES Guida Utente Pagina 113

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 216
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 112
Parametric Fitting
3-37
Example: Evaluating the Goodness of Fit
This example fits several polynomial models to generated data and evaluates
the goodness of fit. The data is cubic and includes a range of missing values.
rand('state',0)
x = [1:0.1:3 9:0.1:10]';
c = [2.5 -0.5 1.3 -0.1];
y = c(1) + c(2)*x + c(3)*x.^2 + c(4)*x.^3 + (rand(size(x))-0.5);
After you import the data, fit it using a cubic polynomial and a fifth degree
polynomial. The data, fits, and residuals are shown below. You display the
residuals in the Curve Fitting Tool with the
View->Residuals menu item.
Both models appear to fit the data well, and the residuals appear to be
randomly distributed around zero. Therefore, a graphical evaluation of the fits
does not reveal any obvious differences between the two equations.
Both fits appear to
model the data well.
The residuals for both
fits appear to be
randomly distributed.
Vedere la pagina 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 215 216

Commenti su questo manuale

Nessun commento