Find Files - MATLAB & Simulink (original) (raw)

Find Files by Name

If you know the name of the file you want to find, begin typing the first characters of the name in the Files panel. As you type, the Files panel searches downward from the top of the window, looking through all expanded folders. To open the Files panel, click the Files icon in the sidebar.

To search for files in the current folder or in the current project, go to theHome tab and click the Go to File button.

Find and Replace Text in Filenames and Content

To search for and replace text in filenames and file content, use the Find Files panel. To open the Find Files panel, click the Find Files icon in the sidebar. If the Find Files icon is not in the left or right sidebar, go to the Home tab, and in theFile section, click Find Files. To open the Find Files panel in a separate window, click the Find Files actions button at the top of the Find Files panel and select .

Find Files panel with a search box, a replace box, and options to match the case of the search text, match the whole word, and filter results

Change How to Search for Text

To change how the Find Files panel searches for text, modify the search options:

Collapse, Clear, or Export Results

After performing a search, you can collapse or clear the list of search results, or export them as plain text.

Replace Text

To replace text in filenames and file content, click the expand button to the left of the search field to open the replace options. Then, to replace an instance of the search text in the results, select the line containing the result, enter the text that you want to replace the search text with, and click the Replace button. To replace all instances of the search text, click the Replace All button.

Replacing text is supported in text files (.txt) and MATLAB code files (.m).

See Also

dir | exist | what | which

Topics