How do I plot a horizontal line
조회 수: 8 (최근 30일)
이전 댓글 표시
s=0.5:0.001:1;
f=yline(0.25);
plot(s,f)
How do I get this to produce a horizontal line at y=0.25 for the interval 0.5 <= s <= 1? Every time I run the script I get a blank graph.
Thanks
댓글 수: 0
채택된 답변
추가 답변 (1개)
madhan ravi
2019년 4월 9일
Using plot here is pointless when you can directly:
yline(.25) xlim([.5,1])
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!