how can i find the value of differentiation? that is f'(2)?

3 次查看(过去 30 天)
f=@(x) x^2- 4
a=diff(f,x)
a(2)? .... (i am getting error here)

回答(1 个)

Alex Mcaulley
Alex Mcaulley 2019-3-12
编辑:VBBV 2024-2-2
syms x
f=x^2- 4
f = 
a(x)=diff(f,x)
a(x) = 
a(2)
ans = 
4

类别

Help CenterFile Exchange 中查找有关 Symbolic Math Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by