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![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/377666/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/377666/image.png)
댓글 수: 0
채택된 답변
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 Center 및 File Exchange에서 Annotations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!