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.
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 :)