Extract Text from Model Info Block

7 ビュー (過去 30 日間)
Arshad_Shaik
Arshad_Shaik 2020 年 5 月 2 日
コメント済み: Arshad_Shaik 2020 年 5 月 5 日
I have a simulink model which uses 'Model Info' blocks. I want to search for 'Model Info' blocks in my model and extract the text mentioned in the 'model info' block programmatically.
Can someone please help how to do that?
Thank you,
Arshad S.

回答 (1 件)

Gautam
Gautam 2020 年 5 月 2 日
You can use get_param to query info populated in 'Model Info' block in your model. For instance, if the name of the model is 'sample', then the command
>> get_param('sample','Created')
will return the date and time when the model was created. You may have to write a small for loop and get_param within it, to get all the info populated in the Model Info block
  1 件のコメント
Arshad_Shaik
Arshad_Shaik 2020 年 5 月 5 日
Thank you.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by