I set the default units of figure to normalized using:
set(0,'units','normalized');
If I execute an example given in documentation of the MENU function,
K = menu('Choose a color','Red','Blue','Green')
I receive the following error:
??? 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 );
Best Answer