How to plot a graph like attached figure (in the form of steps).
조회 수: 2 (최근 30일)
이전 댓글 표시
How can I plot my curve in the form of steps as given in the attached figure?
댓글 수: 0
채택된 답변
Star Strider
2021년 5월 29일
Example —
y = linspace(0,10*pi);
x = sin(y)+1000;
figure
stairs(x, y)
xline(1000, '--')
xlim([998 1002])
.
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!