How can I create a card panel or tab panel in a MATLAB GUI?

4 views (last 30 days)
I would like to create a GUI in MATLAB that contains tabbed panes. I would like to create it either by using GUIDE or by writing a MATLAB function.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Apr 2023
Edited: MathWorks Support Team on 18 Apr 2023
For MATLAB R2016a and newer versions:
App Designer, introduced in R2016a, provides the user the ability to create tabs through the 'Tab Group' option in the Component Library. 
For latest release documentation on tab group app designer properties please refer to:
Or run this command in MATLAB R2016b for old documentation:
>> web(fullfile(docroot, 'matlab/ref/tabgroupappdesigner-properties.html'))
For MATLAB R2014b to R2015b:
This is possible using the 'uitab' and 'uitabgroup' functions. Please refer to the documentation link for these functions here:
uitab function:
uitabgroup function:
For a demonstration of how to use these functions, please refer to the following link:
For MATLAB versions prior to R2014b:
There is no direct way to build a tab panel (or card panel) in GUIDE. However, there are two workarounds for creating a tab panel in a MATLAB GUI:
1. You can find a file at MATLAB central (submitted by Bill York) which shows a sample tab panel built using GUIDE:
2. You can find another file at MATLAB central (submitted by Elmar Tarajan) which allows you to implement a tab panel in an existing GUI using GUIDE:
  1 Comment
Richa Gupta
Richa Gupta on 30 Mar 2016
Edited: MathWorks Support Team on 8 Dec 2017
App Designer, introduced in R2016a, provides the user the ability to create tabs through the 'Tab Group' option in the Component Library. For more information, refer to the following link:
https://www.mathworks.com/help/matlab/ref/matlab.ui.container.tabgroupappd-properties.html

Sign in to comment.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!