allbd - Returns the names of all loaded block diagrams

버전 1.2.0.1 (1.35 KB) 작성자: Malcolm Wood
Names of all loaded (or partially loaded) models and libraries are returned in a cell array
다운로드 수: 1.5K
업데이트 날짜: 2016/9/1

라이선스 보기

This very simple function is just a shorthand for the find_system call which returns the names of all loaded block diagrams- models and libraries. Note that loaded block diagrams are not necessarily visible, especially if they are libraries.
Note also that the find_system call is not necessarily what you might expect to use: it is the fastest- but perhaps not the most intuitive- way to find the list of loaded block diagrams. The command we might think of first would be:
>> names = find_system('Type','block_diagram')
while the command used here is:
>> names = find_system('SearchDepth',0)
By specifying a "SearchDepth" of zero, we ensure that Simulink doesn't search through the entire object hierarchy looking for objects whose "Type" parameter is equal to "block_diagram". And since we know that all objects at SearchDepth zero are block diagrams, we don't even need to specify a type.

인용 양식

Malcolm Wood (2024). allbd - Returns the names of all loaded block diagrams (https://www.mathworks.com/matlabcentral/fileexchange/13465-allbd-returns-the-names-of-all-loaded-block-diagrams), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2006b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.1

Updated license

1.2.0.0

Add copyright.

1.1.0.0

Review

1.0.0.0