Code covered by the BSD License  

Highlights from
allbd - Returns the names of all loaded block diagrams

from allbd - Returns the names of all loaded block diagrams by Malcolm Wood
Names of all loaded (or partially loaded) models and libraries are returned in a cell array

allbd
function bdnames = allbd
%ALLBD Returns the names of all loaded block diagrams
%
% bdnames = allbd
%
% bdnames is a cell array of strings.

% Copyright 2006 - 2009 The MathWorks, Inc.

% This is not the most obvious find_system command to
% use, but it is the quickest.  By specifying a SearchDepth
% of zero, we avoid scanning the entire Simulink object
% hierarchy, and since all objects at SearchDepth zero are
% block diagrams we don't need to specify a type.
bdnames = find_system('SearchDepth',0);

Contact us at files@mathworks.com