Is it possible to add Area annotation programmatically?
5 ビュー (過去 30 日間)
古いコメントを表示
Hi,
I was wondering if it would be possible to programmatically add area annotation to a model in Simulink.
I have used Simulink.Annotation() to add textual annotation which works fine. I'm looking for a way of highlighting a particular section of the model programmatically depending on certain conditions. The size and position of the area would be determined at runtime.
Any pointers would be much appreciated.
Thank you,
sunny
0 件のコメント
採用された回答
Fangjun Jiang
2018 年 5 月 9 日
An "Area" is an "Annotation", with empty "Name", "DropShadow" set as "On".
3 件のコメント
Fangjun Jiang
2018 年 5 月 9 日
You are right, although my statement is also true if you run get_param() on an "Area" and an "Annotation". Anyway, I found a way to create an "Area" by command line:
f14;
add_block('built-in/Area','f14/area','position',[500,20,900,400])
その他の回答 (1 件)
daanav
2018 年 9 月 11 日
A follow up question to this. Can one take a screenshot of only the area created?
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Simulink Functions についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!