Search by line name

8 visualizaciones (últimos 30 días)
Mariam Achraf
Mariam Achraf el 5 de Ag. de 2020
Comentada: Fangjun Jiang el 6 de Ag. de 2020
In a multi-level model, is it possible to get all the ouports and line names as well using command line ?
  2 comentarios
madhan ravi
madhan ravi el 5 de Ag. de 2020
Are you talking about SIMULINK?
Mariam Achraf
Mariam Achraf el 5 de Ag. de 2020
yes

Iniciar sesión para comentar.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 5 de Ag. de 2020
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 comentarios
Mariam Achraf
Mariam Achraf el 6 de Ag. de 2020
Outport blocks
Fangjun Jiang
Fangjun Jiang el 6 de Ag. de 2020
Then it is straightforward to search for 'BlockType','Outport'. Once found, get its 'LineHandles'

Iniciar sesión para comentar.

Categorías

Más información sobre Interactive Model Editing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by