Find the name of last inport in sub-system

1 visualización (últimos 30 días)
Subhash Bhashakhetre
Subhash Bhashakhetre el 25 de Feb. de 2020
Respondida: Monika Jaskolka el 26 de Feb. de 2020
Is there any way to get the name of last inport in sub-system using matlab code?

Respuesta aceptada

Monika Jaskolka
Monika Jaskolka el 26 de Feb. de 2020
find_system(gcs, 'SearchDepth', 1, 'BlockType', 'Inport', 'Port', num2str(length(find_system(gcs, 'SearchDepth', 1, 'BlockType', 'Inport'))))
where gcs is the subsystem handle you want to search.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by