How can I create a collapsible uiPanel in Matlab?
Show older comments
Is there any way of creating collapsible uiPanels in Matlab? As in, panels that open and close by pushing a button? See the example below.
Thank you!

Accepted Answer
More Answers (1)
Walter Roberson
on 12 Dec 2016
0 votes
You could create a uipanel with a toggle button inside it. The callback for the toggle button could resize the uipanel. With clipping set on the uipanel that could be used to hide the content. You could use a CData property on the toggle button to make it look like a triangle.
2 Comments
Neta Stern
on 12 Dec 2016
Walter Roberson
on 12 Dec 2016
Don't put it inside the title then. Is the functionality the important part or is the graphic design the important part?
Categories
Find more on Environment and Settings 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!