How to search for where a function is used in Simulink Model

조회 수: 34 (최근 30일)
Michael Maeder
Michael Maeder 2020년 5월 15일
댓글: Larry Deng 2020년 9월 8일
I wanted to know if there was a way to identify all places that a function was being called inside of a simulink model. I have a simulink model with several matlab function blocks. Is there a way to search for all places within the simulink model that call a specific function whether it be inside a matlab function block or the matlab function block itself.
Thanks
  댓글 수: 1
Larry Deng
Larry Deng 2020년 9월 8일
https://www.mathworks.com/help/simulink/ug/search-and-filter-file-views.html
You can also search:
  • Model contents without loading the models into memory. On the MATLAB Home tab, in the File section, click Find Files. You can search a folder or the entire path. However, you cannot highlight results in models from the results in the Find Files dialog box the same way you do with project search. See Advanced Search for Files (MATLAB).
  • A model hierarchy. In the Simulink Editor, on the Modeling tab, click Find. Select options to look inside masks, links, and references. This search loads the models into memory. See Model Explorer
  • For variables, block parameter values, or search a model hierarchy and contents using more options, using the Model Explorer. This search loads the models into memory. Use the Model Explorer to search for variables in workspaces and data dictionaries, and variable usage in a model. See Edit and Manage Workspace Variables by Using Model Explorer

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

답변 (1개)

Priyanshu Mishra
Priyanshu Mishra 2020년 5월 18일
Hi Michael,
Which item displays the full path of the item. If item is a MATLAB function in a Simulink model, then which displays the full path for corresponding file. For information, follow the documentation of which.

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by