Best layout for a MATLAB based GUI dropdown menu
I'm writing a GUI in MATLAB which allows users to designs pulses. The pulses are optimized based on their class (AM/FM). If the pulses are FM, then they belong to a subclass (RapidPassage or Adiabatic). The simulation/optmization method of the pulse is based on the pulse name and class.
I'm having a design issue. Currently, I'm using a popupmenu in Matlab to select each of the inputs (pulse name, subclass, simulation method) seperately.
however, I have recently discovered a cheat way to add a dropdown menu with submenus using a contextmenu linked to a button. This makes the selection much more 'logically' visible, but it might make it more annoying to use in practice.
because in the second version, each menu item is it's own object, this will require a rewrite of the code I currently have for the popupmenu pulse selection method.
Any advice about which is the better option?
Thanks for your help :)