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

32 次查看(过去 30 天)
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