Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
How to add a reference horizontal line to an existing plot
조회 수: 6 (최근 30일)
이전 댓글 표시
I want to add a reference horizontal line at about -86 db in my plot.How can I do it
댓글 수: 0
채택된 답변
추가 답변 (1개)
KSSV
2018년 6월 11일
Check the below demo code:
x = linspace(0,2*pi) ;
y = sin(x) ;
plot(x,y)
% reference line at x = 0.6
xi = linspace(min(x),max(x)) ;
yi = 0.6*ones(size(xi)) ;
hold on
plot(xi,yi) ;
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!