return in menu matllab, function menu, back in menu of choices

Hello,
I have menu for example
d=menu('main menu','function','methods')
switch d
case 1
o=menu('function','linear','nonlinear','back main menu')
case 2
u= menu('methods','hierarchical','nonhierarchical','back main menu')
end
When I push the back main menu, I wanna go back to the main menu, I want to close all the windows and cleaned the command line.
As you'll have to define 'back main menu' ?
Thanks for you help.

Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Asked:

on 23 Apr 2014

Edited:

on 23 Apr 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!