Library to referenced subsystems

2 ビュー (過去 30 日間)
Adrian Cristian
Adrian Cristian 2022 年 3 月 24 日
回答済み: Jaskirat 2025 年 4 月 24 日
Hello! I have a code that compares some blocks in a Matlab R2020b Simulink application, but it keeps updating and now it doesn't work anymore, because some libraries have been changed to some "referenced subsystems"
for fi = 1:numel(all_libs)
if contains(all_libs(fi).Library, '_function') || contains(all_libs(fi).Library, '_Funktion')
this is the part of the code that searched in libraries, but now they don't exist anymore. How can I make it to search for those referenced subsystems?

回答 (1 件)

Jaskirat
Jaskirat 2025 年 4 月 24 日
In order to search for referenced subsystems, you can use the find_system()” functions and select the “FollowLinks” and LookInsideSubsytemReference” parameters.
You can refer to the following documentation link for more information:
Hope this helps!

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by