flag=1;
while(flag)
colores=menu('Elija un color', 'Rojo', 'Amarillo', 'Salir');
switch colores
case 1
rojo=menu('selecciona', 'magenta', 'granate', 'volver');
if(rojo~=3)flag=0;end
case 2
amarillo=menu('selecciona', 'fosforito', 'mostaza', 'volver');
if(amarillo~=3)flag=0;end
otherwise
break
end