From: Mark Proulx on
Newbie question...I want to include in a Matlab figure a "top to bottom" cursor line that the user can slide back and forth so that they can observe in a separate window the ordinate value where said cursor line crosses the trace. I'm just looking for a quick pointer or two; I can figure it out from there.
From: Joseph on
"Mark Proulx" <mark.p.proulx(a)boeing.com> wrote in message <i2sq57$r9p$1(a)fred.mathworks.com>...
> Newbie question...I want to include in a Matlab figure a "top to bottom" cursor line that the user can slide back and forth so that they can observe in a separate window the ordinate value where said cursor line crosses the trace. I'm just looking for a quick pointer or two; I can figure it out from there.

Check out 'uicontrol'. The basic idea is you'll want something along the lines of:
h = uicontrol('style','slider');

You'll have to set other parameters but that's the basic idea.

Your other choice is to check out the documentation for 'guide'. This will allow you to create a simple gui
From: Mark Proulx on
"Joseph " <don'twannapostit(a)nopers.com> wrote in message <i2sr4v$4m2$1(a)fred.mathworks.com>...
> "Mark Proulx" <mark.p.proulx(a)boeing.com> wrote in message <i2sq57$r9p$1(a)fred.mathworks.com>...
> > Newbie question...I want to include in a Matlab figure a "top to bottom" cursor line that the user can slide back and forth so that they can observe in a separate window the ordinate value where said cursor line crosses the trace. I'm just looking for a quick pointer or two; I can figure it out from there.
>
> Check out 'uicontrol'. The basic idea is you'll want something along the lines of:
> h = uicontrol('style','slider');
>
> You'll have to set other parameters but that's the basic idea.
>
> Your other choice is to check out the documentation for 'guide'. This will allow you to create a simple gui

Thanks! I just needed to get pointed in the right direction. I will post progress.