Derivative of a Function
조회 수: 20 (최근 30일)
이전 댓글 표시
Is there a way to input a function as "g=@(x) exp(x^2-2);" and take the derivative?
댓글 수: 0
채택된 답변
James Tursa
2015년 4월 17일
편집: James Tursa
2015년 4월 17일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Calculus에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!