Info
此问题已关闭。 请重新打开它进行编辑或回答。
How to add a reference horizontal line to an existing plot
1 次查看(过去 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!