How do I plot a horizontal line
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alex Vasin
am 9 Apr. 2019
Beantwortet: madhan ravi
am 9 Apr. 2019
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
madhan ravi
am 9 Apr. 2019
Using plot here is pointless when you can directly:
yline(.25) xlim([.5,1])
0 Kommentare
Siehe auch
Kategorien
Mehr zu Labels and Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!