Derivative of symbolic funtion at a specific value
조회 수: 2 (최근 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!