Derivative of symbolic funtion at a specific value
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Azzi Abdelmalek
2012-9-22
编辑:Azzi Abdelmalek
2012-9-22
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 个评论
Azzi Abdelmalek
2012-9-22
编辑:Azzi Abdelmalek
2012-9-22
try this
Function_d = @(x) diff('8-4.5*(x-sin (x))');
x=5; eval(Function_d(1))
更多回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!