Find the name of last inport in sub-system

1 vue (au cours des 30 derniers jours)
Subhash Bhashakhetre
Subhash Bhashakhetre le 25 Fév 2020
Is there any way to get the name of last inport in sub-system using matlab code?

Réponse acceptée

Monika Jaskolka
Monika Jaskolka le 26 Fév 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.

Plus de réponses (0)

Catégories

En savoir plus sur Programmatic Model Editing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by