MATLAB: How to create a card panel or tab panel in a MATLAB GUI

carddialogexampleguiguideMATLABpaneltabtabbabletabdlguitabuitabgroup

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.

Best Answer

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 more information, refer to the following link:
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: