MATLAB: How to determine if a model created with Simulink 7.3 (R2009a) is visible

simulink

I can load a model using LOAD_SYSTEM without making it visible, but how can I determine using MATLAB commands, if the model is invisible or if it has been made visible using OPEN_SYSTEM?

Best Answer

The following example shows how to use the 'shown' parameter to determine a model's visibility:
% Load but do not make visible.
load_system('vdp');
% Query visibility.

get_param('vdp', 'shown') % Displays 'off'.
% Load and make visible.
open_system('vdp');
% Query visibility.
get_param('vdp', 'shown') % Displays 'on'.