MATLAB: How to find all subsystems the model contains in Simulink 7.8 (R2011b)

find_systemsimulink

Is there an easy way to find all SubSystems of a model with FIND_SYSTEM? For example also info blocks are of BlockType SubSystem, but I only want to find real subsystems.

Best Answer

all_Subsystem = find_system(gcs, 'FollowLinks', 'on', 'LookUnderMasks', 'all','LookUnderReadProtectedSubsystems','on', 'BlockType','SubSystem')