Search by line name

5 次查看(过去 30 天)
Mariam Achraf
Mariam Achraf 2020-8-5
In a multi-level model, is it possible to get all the ouports and line names as well using command line ?

回答(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