How to modify the markers of a figure of the decaying function are squares instead of circle and set the line width of the other sinusoid to 2 instead of 4?

1 次查看(过去 30 天)
This is my code:
x = 0:pi/20:4*pi;
plot(x, sin(x))
hold on
plot(x, exp(-0.1*x).*sin(x),'o')
hold off

采纳的回答

Sudhakar Shinde
Sudhakar Shinde 2020-10-12
编辑:Sudhakar Shinde 2020-10-12
x = 0:pi/20:4*pi;
plot(x, sin(x),'LineWidth',2)
hold on
plot(x, exp(-0.1*x).*sin(x),'s')
hold off
  3 个评论

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by