From: Jeffrey on
Hi!
I'm trying to create an options menu in Matlab 7.4.0.287 (R2007a) and student version 7.8.0.347 (R2009a).

I'm running Matlab with "matlab -nojvm -nodisplay" and using the command "menu."

The documentation says that if there is no display, it will display a text-based menu. However, I'm getting the error below.

I'm a Matlab "G"UI newbie, so if I had to set up my "graphics" environment, I didn't know (or do) it.

Thanks!
-Jeff

>> menu('choice?', 'a', 'b')
??? Error using ==> set
Width and height must be > 0.

Error in ==> menu>local_GUImenu at 238
set( menuFig, 'Position', [winLeftGap bottom winWide winHigh] );

Error in ==> menu at 53
k = local_GUImenu( xHeader, ArgsIn );
From: us on
"Jeffrey " <jeff.yunes(a)berkeley.edu> wrote in message <htp7p9$fs2$1(a)fred.mathworks.com>...
> Hi!
> I'm trying to create an options menu in Matlab 7.4.0.287 (R2007a) and student version 7.8.0.347 (R2009a).
>
> I'm running Matlab with "matlab -nojvm -nodisplay" and using the command "menu."
>
> The documentation says that if there is no display, it will display a text-based menu. However, I'm getting the error below.
>
> I'm a Matlab "G"UI newbie, so if I had to set up my "graphics" environment, I didn't know (or do) it.
>
> Thanks!
> -Jeff
>
> >> menu('choice?', 'a', 'b')
> ??? Error using ==> set
> Width and height must be > 0.
>
> Error in ==> menu>local_GUImenu at 238
> set( menuFig, 'Position', [winLeftGap bottom winWide winHigh] );
>
> Error in ==> menu at 53
> k = local_GUImenu( xHeader, ArgsIn );

a hint:

http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bropbi9-1.html#brubkzc-1

us
From: Jeffrey on
"us " <us(a)neurol.unizh.ch> wrote in message <htp9ae$ng5$1(a)fred.mathworks.com>...
> "Jeffrey " <jeff.yunes(a)berkeley.edu> wrote in message <htp7p9$fs2$1(a)fred.mathworks.com>...
> > Hi!
> > I'm trying to create an options menu in Matlab 7.4.0.287 (R2007a) and student version 7.8.0.347 (R2009a).
> >
> > I'm running Matlab with "matlab -nojvm -nodisplay" and using the command "menu."
> >
> > The documentation says that if there is no display, it will display a text-based menu. However, I'm getting the error below.
> >
> > I'm a Matlab "G"UI newbie, so if I had to set up my "graphics" environment, I didn't know (or do) it.
> >
> > Thanks!
> > -Jeff
> >
> > >> menu('choice?', 'a', 'b')
> > ??? Error using ==> set
> > Width and height must be > 0.
> >
> > Error in ==> menu>local_GUImenu at 238
> > set( menuFig, 'Position', [winLeftGap bottom winWide winHigh] );
> >
> > Error in ==> menu at 53
> > k = local_GUImenu( xHeader, ArgsIn );
>
> a hint:
>
> http://www.mathworks.com/access/helpdesk/help/techdoc/rn/bropbi9-1.html#brubkzc-1
>
> us

Hi us,
In that reference, I don't see how to make a text-only options menu (with or without jvm, display, or desktop). The documentation still indicates that it should be possible. Could you please give another hint, or suggest a way to print a text only options menu?

Thanks!
-Jeff
From: Jeffrey on
"Jeffrey " <jeff.yunes(a)berkeley.edu> wrote in message <htp7p9$fs2$1(a)fred.mathworks.com>...
> Hi!
> I'm trying to create an options menu in Matlab 7.4.0.287 (R2007a) and student version 7.8.0.347 (R2009a).
>
> I'm running Matlab with "matlab -nojvm -nodisplay" and using the command "menu."
>
> The documentation says that if there is no display, it will display a text-based menu. However, I'm getting the error below.
>
> I'm a Matlab "G"UI newbie, so if I had to set up my "graphics" environment, I didn't know (or do) it.
>
> Thanks!
> -Jeff
>
> >> menu('choice?', 'a', 'b')
> ??? Error using ==> set
> Width and height must be > 0.
>
> Error in ==> menu>local_GUImenu at 238
> set( menuFig, 'Position', [winLeftGap bottom winWide winHigh] );
>
> Error in ==> menu at 53
> k = local_GUImenu( xHeader, ArgsIn );

OK! I've made a little progress. If I ssh to the Matlab box without enabling X11 forwarding, start Matlab (with our without nodisplay and nojvm), I get the following warning, and the text menu *works*!

Warning: Unable to open display , MATLAB is starting without a display.
You will not be able to display graphics on the screen.

However, with X11 forwarding enabled (ssh -X), then I cannot get the text menu to work (with or without nodisplay and nojvm).

So, do you know how I can run Matlab without a display in a way that works (without changing how I login to the shell)? Apparently, nodisplay isn't sufficient?

Thanks!
-Jeff