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?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Rosendo Ramos
el 12 de Oct. de 2020
Comentada: Sudhakar Shinde
el 13 de Oct. de 2020
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
0 comentarios
Respuesta aceptada
Sudhakar Shinde
el 12 de Oct. de 2020
Editada: Sudhakar Shinde
el 12 de Oct. de 2020
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!