Highlight to Source Programmatically

Hi, I wanted to get the source of a block in Simulink. Normally in Simulink one can click on the signal line of the block and select 'Highlight to source'. The line is then highlighted all the way up to the source of the signal line even through nested buses, subsystems and so on. I need to get the source of a signal line programmatically. Is there any way to do this.. Any help or tips will be highly appreciated. i am using MatlabR2009b but if a command is availbale say in Matlab 2011 b I am open to using that too...
Thanks

回答 (1 件)

Sachin Ganjare
Sachin Ganjare 2012 年 9 月 26 日
編集済み: John Kelly 2022 年 11 月 22 日

2 投票

You can use hilite_system command.
Refer the details in below link:
Hope it helps!!!

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

製品

質問済み:

2012 年 9 月 26 日

編集済み:

2022 年 11 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by