%% Advanced Enabled Subsystems 
% 
% This model shows what happens when a sine wave is fed into an enabled
%  subsystem. The four subsystems in the model contain integrators, either
%  discrete or continuous as described by the subsystem name. After running
%  the simulation, the two scopes show the results for the discrete enabled
%  subsystems (top scope) and continuous enabled subsystems (bottom scope).
% 
% Each scope shows the output for all combinations of the states and
% outputs of the enabled subsystem being either held or reset when the
% subsystem is disabled. The colors on the scope correspond to the
% following state and output configurations:  
%
% Yellow: Reset states; Held outputs 
% 
% Purple: Reset states; Reset outputs 
% 
% Cyan: Held states; Held outputs 
% 
% Red: Held states; Reset outputs
%
% Copyright 2004-2014 The MathWorks, Inc.

open_system('enabsubs')
evalc('sim(''enabsubs'')');
open_system('enabsubs/Discrete  Signals');
open_system('enabsubs/Continuous Signals');
