Derivative of symbolic funtion at a specific value
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ahmed Elkady
am 22 Sep. 2012
Kommentiert: Mohammad Tauquir Iqbal
am 10 Jul. 2018
I have a symbolic function of variable "x"
Function = @(x) 8-4.5*(x-sin (x));
say I need to get the derivative at x=5
what should i do?
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 22 Sep. 2012
Bearbeitet: Azzi Abdelmalek
am 22 Sep. 2012
Function = @(x) 8-4.5*(x-sin (x));
Function(5)
%derivative
Function_d = @(x) diff('8-4.5*(x-sin (x))');
x=5; eval(Function_d(1))
4 Kommentare
Azzi Abdelmalek
am 22 Sep. 2012
Bearbeitet: Azzi Abdelmalek
am 22 Sep. 2012
try this
Function_d = @(x) diff('8-4.5*(x-sin (x))');
x=5; eval(Function_d(1))
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!