How to put vertical line in graph?

  • Follow


I'm trying to put vertical dotted lines in a graph of a signal, to mark
the beginning and end of a window of the signal. Even solid light
colored lines would work fine. Is this possible? I have been completely
through the plot documentation and the graphics documentation with no
luck.

Thanks in advance for any help.

0
Reply billjosephson (77) 12/2/2006 5:01:24 AM

Something like that

function h = grinsvline(x)
% grinsvline(): insert vertical line in the current graph
h = line([x x], get(gca, 'YLim'), 'Color', [0 0 0]);

Kirill

0
Reply kirillandreev (111) 12/2/2006 6:44:15 AM


BillJosephson wrote:
>
>
> I'm trying to put vertical dotted lines in a graph of a signal, to
> mark
> the beginning and end of a window of the signal. Even solid light
> colored lines would work fine. Is this possible? I have been
> completely
> through the plot documentation and the graphics documentation with
> no
> luck.
>
> Thanks in advance for any help.
>
>
  
Look here:

 <http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=9973&objectType=file>

HTH,
John D'Errico
0
Reply woodchips (7921) 12/2/2006 10:45:33 AM

2 Replies
26 Views

(page loaded in 0.082 seconds)

Similiar Articles:













7/23/2012 10:30:30 AM


Reply: