How do I search a Simulink Model for a variable?

21 ビュー (過去 30 日間)
Farhad Verahrami
Farhad Verahrami 2016 年 1 月 7 日
コメント済み: Farhad Verahrami 2016 年 1 月 8 日
I am trying to follow a Simulink model. There are many variables which have been defined/initialized in a Matlab script which is run before the model is run. I would like to know where in the model these variables are used. Is there a way to do this without having to go through each module of the model, or examining its mask parameters, etc.? Thanks in advance for your help.

回答 (1 件)

Sebastian Castro
Sebastian Castro 2016 年 1 月 8 日
You can right-click a model and select "Find Referenced Variables".
This will take you into the Model Explorer tool (you can open this in other ways too), which shows the search results and lets you search again as shown here:
- Sebastian
  1 件のコメント
Farhad Verahrami
Farhad Verahrami 2016 年 1 月 8 日
Thanks very much. In which version was this added? 2013a does not seem to support this; but 2014 does. Also can you do a "search" or you can just see tge variables used in a block with this view?

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

カテゴリ

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