How to get input and output names of a below subsystem?
조회 수: 13 (최근 30일)
이전 댓글 표시
Is it possible to get names of inputs and outputs without going inside the subsystem using script?
Here inputs are coming from other subsystem/blocks and outputs are going to other subsystem/blocks.
![Subsystem.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/211804/image.jpeg)
expected input names : violet,indigo,blue,green
expected output names : yellow,red,white,black
답변 (1개)
Dhanashree Mohite
2019년 4월 8일
As per my understanding you can use ‘find_system’ command with Blocktype and SearchDepth parameters.
>> find_system('modelName','SearchDepth',2,'BlockType','Inport')
>> find_system('modelName','SearchDepth',2,'BlockType','Outport')
Refer below link for more understanding:
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Subsystems에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!