MATLAB: AppDesigner UIPanel Hide Visibility

app designerguiguidematlab gui

I have several overlapping UIPanel's in AppDesigner and I want all but one panel to be hidden upon creation of the figure or soon thereafter. AppDesigner doesn't let you edit the constructor for the object and there is no property in the Component Browser for me to edit visibility. There is a .Visible property contained under app.panel.Visible that I believe can be set. Just can't figure out how to initialize this setting automatically without access to the constructor or the app creation.

Best Answer

You can edit the startupFcn in the 'Code View' of your AppDesigner to set the Visible property of the panel.
function startupFcn(app)
app.Panel.Visible = 'off';
end