Defining a symbolic function using the "diff" command
Mostrar comentarios más antiguos
I have a function, say
Function=@ (x) x^2
I want to differentiate this function using the Diff command:
diff(Function,x,1)
and then save the output derivative function as a new function called FunctionDerv
so it will be the same as saying:
FunctionDerv= @ (x) 2x
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Calculus 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!