How do I create a tabbed GUI in MatLab?

后端 未结 2 1381
傲寒
傲寒 2021-02-09 06:07

I want to create a tabbed GUI in which first tab is for reading input, then the input is displayed on the GUI. The User should be able to select the data from GUI and then give

2条回答
  •  鱼传尺愫
    2021-02-09 06:40

    You can also create tabs from a GUIDE created GUI with the help of a utility available from Matlab File Exchange that I wrote.

    The usage is fairly simple:

    1. Create a pane with tag set to Tab? where ? is any letter or number (e.g. TabA). This main pane should be left empty and determines the size and location of the tab group (uitabgroup).
    2. Create additional panes with a tag name that starts with the name of the main pane. All other controls should be added to these panes.
    3. In the Guide generated function xxx_OpeningFcn add the following:

      handles.tabManager = TabManager( hObject );

    The location of the additional panes is not important but it is generally easier to edit the GUI if they are in the same location as the main pane. You can edit the panes even if they are overlaid by cycling through the panes with the "Send to back" command from the Guide pop up menu.

提交回复
热议问题