MATLAB: How to plot a horizontal line

horizontal line

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

Best Answer

s=0.5:0.001:1;
f=repmat(0.25,1,length(s));
plot(s,f)