MATLAB: Calculating a function and drawing a graph

MATLABsymbolic

derivative at x=1 and drawing a function graph.
my solution was:
but didnt work. Need help.
x= 1;
f(x) =sin*x/x^2+1;
fplot(f)

Best Answer

syms x
f=sin(x)/(x^2+1);
fplot(f)
derivative=diff(f,x)
derivative_when_x_equals_one=double(subs(derivative,x,1))
Related Question