Derivative of a Function
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Cameron
am 17 Apr. 2015
Bearbeitet: James Tursa
am 17 Apr. 2015
Is there a way to input a function as "g=@(x) exp(x^2-2);" and take the derivative?
0 Kommentare
Akzeptierte Antwort
James Tursa
am 17 Apr. 2015
Bearbeitet: James Tursa
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!