get the Model name which is already opened
107 ビュー (過去 30 日間)
古いコメントを表示
Would like to know, how to get the model name using Matlab Script which i have already opened. I have a script which finds out the no of Library links those are unresolved. So, when ever i open any model, i want to run the script and get the result for that particular model. Currently, before running the script i need to enter the model name manually.
0 件のコメント
回答 (2 件)
A Jenkins
2014 年 9 月 22 日
>> help gcs
gcs Get the full path name of the current Simulink system.
gcs returns the full path name of the current system. During editing,
the current system is the system or subsystem most recently clicked in.
During simulation of a system containing S-function blocks, the current
system is the system or subsystem containing the S-function block that
is currently being evaluated.
See also gcb, gcbh.
Reference page in Help browser
doc gcs
0 件のコメント
Gaganjyoti Baishya
2020 年 6 月 21 日
Hi you can get the opened model by get_param(bdroot, 'Name')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Programmatic Model Editing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!