Derivative of a Function
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Is there a way to input a function as "g=@(x) exp(x^2-2);" and take the derivative?
0 commentaires
Réponse acceptée
James Tursa
le 17 Avr 2015
Modifié(e) : James Tursa
le 17 Avr 2015
If you have the Symbolic Toolbox:
>> g = @(x) exp(x^2-2)
g =
@(x)exp(x^2-2)
>> syms x
>> diff(g(x))
ans =
2*x*exp(x^2 - 2)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Calculus dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!