How do I plot a horizontal line
2 次查看(过去 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 中查找有关 Labels and Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!