MATLAB Answers

How to control visibility of all panels with one single statement

15 views (last 30 days)
Abdurrehman
Abdurrehman on 11 Feb 2018
Edited: Abdurrehman on 11 Feb 2018
Hi,
I have used many UI Panels in my guide GUI. The Panels are dedicated for special tasks which can be selected by pushbuttons. Currently, I am enabling or disabling each panel with following statements
handles.PanelName.Visible='on';
handles.PanelName.Visible='off';
The problem is, I have to repeat statement for each panel. Is it possible to control the visibility of all panels with a single statement. I have used
arrayfun with findall
to clear all axes in one single statement but not sure how to use this for controlling the visibility of panels. Please help, thanks.

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.

Tags