Utilities
Advanced functions for manipulating and querying models, charts, and elements
directly
These utility functions enable advanced users to manipulate and query Simulink models and Stateflow charts and elements of those models and charts.
Functions
slreportgen.utils.sortSystems | Sort Simulink systems (Since R2022b) |
slreportgen.utils.sortObjects | Sort Simulink objects (Since R2022b) |
slreportgen.utils.sortBlocks | Sort Simulink blocks (Since R2022b) |
slreportgen.utils.compileModel | Compile model |
slreportgen.utils.uncompileModel | Uncompile model |
slreportgen.utils.isModelCompiled | Check if model is compiled |
slreportgen.utils.hasDiagram | Check if object has diagram |
slreportgen.utils.isBusSelector | Check if Bus Selector block |
slreportgen.utils.isDocBlock | Check if DocBlock |
slreportgen.utils.isLookupTable | Check if lookup table block |
slreportgen.utils.isMATLABFunction | Check if MATLAB function block or object |
slreportgen.utils.isModel | Check if object is model |
slreportgen.utils.isModelReferenceBlock | Check if object is Model block |
slreportgen.utils.isStateTransitionTable | Check if object is state transition table (Since R2022a) |
slreportgen.utils.isTestSequence | Check if Test Sequence block or object |
slreportgen.utils.isTruthTable | Check if object is Truth Table |
slreportgen.utils.isModelLoaded | Check if model is loaded |
slreportgen.utils.loadAllSystems | Load all systems |
slreportgen.utils.getModelHandle | Get handle to Simulink model that contains block or Stateflow chart |
slreportgen.utils.getSlSfHandle | Get Simulink handle or Stateflow object |
slreportgen.utils.block2chart | Get Stateflow chart object from containing block |
slreportgen.utils.getObjectID | Generate link target ID for Simulink or Stateflow object |
slreportgen.utils.isSID | Check if name is Simulink Identifier (SID) string |
slreportgen.utils.isValidSlSystem | Check if system is valid Simulink system |
slreportgen.utils.pathJoin | Combine two diagram path parts |
slreportgen.utils.pathParts | Split diagram path into parent and diagram parts |
slreportgen.utils.pathSplit | Split diagram path into array of diagram parts |
slreportgen.utils.getCurrentEditorView | Get current editor view area |
slreportgen.utils.getDisplayIcon | Get Simulink or Stateflow icon file name |
slreportgen.utils.hasUniqueModelNotes | Check if system has unique model notes (Since R2025a) |
slreportgen.utils.HierarchyNumber | Generate number that represents subsystem position in model hierarchy (Since R2021b) |
slreportgen.utils.traceSignal | Trace signal to source or destination |
slreportgen.utils.getResolvedParamValue | Evaluate parameter value expression |
slreportgen.utils.isMaskedSystem | Check if system is masked subsystem block |
slreportgen.utils.isCommented | Check if object is commented out |
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)