Calculating a function and drawing a graph

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)

 Accepted 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))

More Answers (0)

Products

Release

R2018b

Community Treasure Hunt

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

Start Hunting!