Derivative of a Function
14 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Is there a way to input a function as "g=@(x) exp(x^2-2);" and take the derivative?
0 Commenti
Risposta accettata
James Tursa
il 17 Apr 2015
Modificato: James Tursa
il 17 Apr 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Calculus in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!