MATLAB: How to modiffy a GUI (adding menus) during runtime

gui menu runtime

We have developed a main m-code (platform) with model specific parts in a separate m-file. I want to add menus to the GUI of the platform after selecting the model specific m-file.
Thus I was thinkin that the model m-file will return text strings to the platform that is then used to add additional menus into its GUI.
Is this possible at all within Matlab? or Do I need to open a new, separate GUI where this menus are given?
Lars-Erik

Best Answer

The command uimenu allows to add menus to an existing and active GUI. You can get the handle of a specific menu element also and modify its properties by the set command.