In a project, you can search inside all your models and supporting files. You can find matches inside model files, MATLAB® files, data dictionaries, and other project files such as PDF and Microsoft® Word files. You search only the current project. If you want to search referenced project files, open the referenced project.
On the Project tab, click the down arrow to expand the Tools gallery. Under Project Files, click Search. Alternatively, type in the file filter box, and the project provides a link to try searching inside files instead.
In the Search Inside Project Files dialog box, enter some characters to search for. Do not use quotes around phrases, or hyphens.
Expand files in the list to see results inside the file. Double-click results to locate specific items, e.g., highlight blocks in Simulink® models, or highlight specific lines in MATLAB files.
Click Filters to refine results by file type, status, or label.
In a project, in the Files view and in the Custom Task dialog box, you can use the search box and filtering tools to specify file display.
To view files, select the Files node. When the Project (number of files) view is selected, only the files in your project are shown. To see all the files in your sandbox, click All. This view shows all the files that are under the project root, not just the files that are in the project.
To search, type a search term in the search box, for example, part of a file name
or a file extension. You can use wildcards, for example,
Click X to clear the search.
To build a filter for the current view, click the filter button .
In the Filter Builder dialog box you can select multiple filter criteria to apply using names, file types, project status, and labels.
The dialog box reports the resulting filter at the bottom, for example:
Filter = file type is 'Model files (*.slx, *.mdl)' AND project status is 'In project' AND has label 'Engine Type:Diesel'
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.
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