How do I plot the derivative of a function?
2 次查看(过去 30 天)
显示 更早的评论
Already have the derivative 1- (sinx)/(squar(x))-(squar(x))(cos(x)) just don't know how to plot it via code
0 个评论
回答(3 个)
Sulaymon Eshkabilov
2022-10-1
编辑:Sulaymon Eshkabilov
2022-10-1
To plot sin(2*x), e.g.:
syms x
fplot(x, sin(2*x), [-pi, pi]), grid on
xlabel('x'), ylabel('sin(2*x)')
Apply this exercise for your exercise.
Sulaymon Eshkabilov
2022-10-1
It is very simple, e.g.:
x = [-3, -2.5 -2 -1 0 1 2 3];
y= sin(2*x);
plot(x, y)
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!