Extract Text from Model Info Block
조회 수: 5 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
답변 (1개)
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
참고 항목
카테고리
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!