MATLAB CURVE FITTING TOOLBOX - RELEASE NOTES Guide de l'utilisateur Page 170

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 216
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 169
differentiate
4-94
4differentiate
Purpose Differentiate a fit result object
Syntax deriv1 = differentiate(fitresult,x)
[deriv1,deriv2] = differentiate(...)
Arguments
Description
deriv1 = differentiate(fitresult,x) differentiates the fit result object
fresult at the points specified by x and returns the result to deriv1. You can
generate
fresult with the fit function or the cfit function.
[deriv1,deriv2] = differentiate(...) computes the first derivative
deriv1, and the second derivative deriv2 for the specified fit result object.
Remarks For library equations with closed forms, analytic derivatives are calculated.
For all other equations, the first derivative is calculated using the central
difference quotient
where x is the predictor value at which the derivative is calculated, h is a small
number, y
x+h
is fresult evaluated at x+h, and y
x-h
is fresult evaluated at x-h.
The second derivative is calculated using the expression
fresult A fit result object.
x A column vector of values at which fresult is differentiated.
deriv1 A column vector of first derivatives.
deriv2 A column vector of second derivatives.
y
y
xh+
y
xh
2h
---------------------------------=
y’’
y
xh+
y
xh
2y
x
+
h
2
------------------------------------------------=
Vue de la page 169
1 2 ... 165 166 167 168 169 170 171 172 173 174 175 ... 215 216

Commentaires sur ces manuels

Pas de commentaire