필터 지우기
필터 지우기

How do I locate Search variables using Simulink Model Explorer?

조회 수: 1 (최근 30일)
Semaj Kazam
Semaj Kazam 2017년 3월 7일
댓글: Semaj Kazam 2017년 3월 14일
I Search for model variables using Simulink Model Explorer. It locates the variable and I use Explorer to direct me to the variable location on the model. Simulink Model Explorer opens the very large model, but doesn't point to the Search variable. I have to manually scroll the entire model to find the Search variable. Is there a way to highlight the found Search variable? Are there any other options that help locate Search variable results easier?

답변 (1개)

Gillian Rosen
Gillian Rosen 2017년 3월 14일
Hi Jim, 
I understand that you would like to highlight the location of a searched variable after finding it using the Model Explorer. 
I am assuming that you have a variable that is being used in the parameters for a Simulink block, and you would like to highlight the block that contains your desired variable. To search for and highlight the block that contains the desired variable, you can use the following steps: 
1. Search for the variable as usual. I am assuming that you are using the Model Explorer to search for variable usage. 
2. When the list of results appears, double-click the small block icon on the left side of the row for your desired block. This will select your desired block as the current block in Simulink.
3. In the MATLAB Command Window, execute the following command: 
>> hilite_system(gcb)
This will highlight your current block. 
4. If you would like to remove the highlight, execute the following command in the MATLAB Command Window: 
>> hilite_system(gcb,'off')
These steps should help you highlight your desired block in the model. 
  댓글 수: 1
Semaj Kazam
Semaj Kazam 2017년 3월 14일
Thanks for the suggestion. The command highlights the block in the Model Browser window, but doesn't point me to the variable in the model. I still need to search the entire model to find the variable.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by