필터 지우기
필터 지우기

Search by line name

조회 수: 4 (최근 30일)
Mariam Achraf
Mariam Achraf 2020년 8월 5일
댓글: Fangjun Jiang 2020년 8월 6일
In a multi-level model, is it possible to get all the ouports and line names as well using command line ?
  댓글 수: 2
madhan ravi
madhan ravi 2020년 8월 5일
Are you talking about SIMULINK?
Mariam Achraf
Mariam Achraf 2020년 8월 5일
yes

댓글을 달려면 로그인하십시오.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2020년 8월 5일
set 'FindAll' to be 'On' to search for signal lines. For outports, you need to clarify whether it is Outport block or outports of any block.
>> f14
>> find_system('f14','FindAll','On','type','line','name','w')
ans =
118.0001
117.0001
116.0001
  댓글 수: 2
Mariam Achraf
Mariam Achraf 2020년 8월 6일
Outport blocks
Fangjun Jiang
Fangjun Jiang 2020년 8월 6일
Then it is straightforward to search for 'BlockType','Outport'. Once found, get its 'LineHandles'

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Model Editing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by