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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Rosendo Ramos
am 12 Okt. 2020
Kommentiert: Sudhakar Shinde
am 13 Okt. 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![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/377666/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/377666/image.png)
0 Kommentare
Akzeptierte Antwort
Sudhakar Shinde
am 12 Okt. 2020
Bearbeitet: Sudhakar Shinde
am 12 Okt. 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!