derivative of a function file
Mostrar comentarios más antiguos
hello everybody i'm wondering if it's possible to find the numerical derivative of a piecewise function that i have separately built as a function file in matlbab
2 comentarios
Jan
el 29 de Nov. de 2013
What exactly is the derivative of a piecewise function? Does "piecewise" implies a continuous derivative in your problem?
Walter Roberson
el 29 de Nov. de 2013
A spline, for example, is piecewise. (Note: there is a spline derivative routine around.)
Piecewise does not necessarily have a smooth derivative.
Respuestas (2)
Walter Roberson
el 29 de Nov. de 2013
0 votos
gradient() ?
1 comentario
Walter Roberson
el 30 de Nov. de 2013
If you create a vector or array of values by running them through the function, then you can gradient() that vector or array.
Categorías
Más información sobre MATLAB en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!