www.gusucode.com > simulink 案例源码程序 matlab代码 > simulink/FindSystemRegularExpressionSearchforPartialMatchExample.m

    %% Regular Expression Search for Partial Match  
% When you search using regular expressions, you can specify a part of the character vector you want to match to return all objects that contain that character vector. Find all the inport and outport blocks in the |sldemo_clutch| model. 

%%
load_system('sldemo_clutch');
find_system('sldemo_clutch','regexp','on','blocktype','port')