| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
In the Current Folder browser, use the typeahead feature to find a file or folder by name in the current folder:
Position the pointer in the list of files and folders in the current folder.
Type the first characters of the name you want to find.
As you type, the Current Folder browser searches downward from the top of the window, looking through all expanded folders. It selects the first entry in the current folder whose name begins with the characters you typed. It does not find
Typeahead and find as you type are other names for this feature.
Find names in the current folder and subfolders that contain a specified series of characters by using the search field in the Current Folder browser. Instant search and filtering are other names for this feature.
Change the current folder to the folder you want to look in.
See Viewing and Changing the Current Folder Using the Current Folder Browser.
Click the search button
in the address
bar.
The path in the address bar becomes a field where you enter text, displaying the message Type search text (ex: *.m).
(If the address bar is not in the Current Folder browser toolbar, see Using Toolbar Features.)
In the search field, begin typing the string to you want to find. What you type replaces the message in the field. Ignore irrelevant characters in the string by using * (an asterisk) as the wildcard character.
As you type, the Current Folder browser lists only the names of files and folders that include the string you typed.
The following is an example of the results when you search for coll. The example shows results arranged by location, with the full path to the location in parenthesis.

Further filter the list by typing additional characters or removing characters you already typed.
Continuing the example, append *.m to show only file names that being with coll and have a .m extension.

Customize the way search results appear by using the View menu options: Show, Sort, and Group. See Viewing Files and Folders.
Clear the filter results and show all items in the current
folder by clicking the Close box
in the filter
field. Alternatively, press the Esc key.
To look for a specified string in file names and within files located in multiple folders, use the Find Files tool.

Open the Find Files tool by selecting Edit > Find Files from any desktop tool.
Search for file names containing a specified string by typing the string in the Find files named field. Ignore irrelevant characters in the string by using * (an asterisk) as the wildcard character. For example, type coll* to search for file names that start with coll.
Reuse a search string you previously entered in this MATLAB session by clicking the down arrow in the search field and selecting it from the list.
Search for a specified string in the content of files by typing the string in the Find files containing text field. For example, search for plot. Alternatively, select text in the Command Window or Editor and that text appears in the field.
For partial word searching in file contents, under the More options Search type, select Contains text.
Find an exact full-string match by selecting Matches whole word.
Specify file types to search for by selecting one of the options listed in the table.
| One type | For Include only file type(s), select the file type you are looking for. For example, select *.m to limit the search to M-files. |
| All types |
|
| Other variations |
|
Specify the folders to search using one of the Look in options:
Select an option listed.
Enter the full path for one or more folders. Separate each path by a semicolon (;).
Include subfolders by selecting the Include subdirectories check box.
Further restrict the search using More options. For example, use the Skip files over option. It ignores large files that could take a long time to look through.
Perform the search by clicking Find.
The Find Files tool presents the search results in the right pane of the dialog box, with a summary at the bottom. For text searches, results include the line number and line of code.
Customize the display of results:
To see file locations, select Show full pathnames.
To sort results by a column, click the column heading. For example, click Line to sort results by line number.
Select the files you want to open.
Right-click and select one of the Open options from the context menu.
View the results of a previous search by selecting its tab at the bottom of the results pane. Find Files shows up to 10 tabs for previous search results while the tool is open. File Files does not maintain the results after you close the tool.
Use the Find Files tool to look in all file types except file types you specify:
For Include only file type(s), select All files (*).
Specify the file types you want the search to ignore:
Select the Skip file type(s) check box.
Click Edit.
In the resulting Edit Skipped File Extension dialog box, specify which file types to look in and which to ignore:
Ignore a file type by selecting its State check box.
Look for a file type by clearing its State check box.
Add any file types not listed, if you want to skip them or look for them:
Enter the file extension in the field at the top of the dialog box.
Click Add.
The file type appears in the list.
Verify that the State check box has the setting you want.
The example at the end of this procedure shows the scc file type added.
Reduce the size of the list by removing any file extensions not relevant to your search:
Select the name of the extension.
Click Remove.
Click OK to accept your changes.
The Edit Skipped File Extensions dialog box closes.
After making the changes, when you use the Find Files tool, search ignores the selected file types.

From the Current Folder browser, you can go to a file or folder location in the Windows Explorer or the Apple Macintosh Finder:
In the Current Folder browser, right-click the file or folder.
From the context menu, select Locate on Disk.
The Windows Explorer or Macintosh Finder opens to the folder containing the selected item.
| To... | Use This Function |
|---|---|
| Determine if a variable, function, or folder exists. | exist |
| Search for the specified string in the first line of M-file help | lookfor |
| See files and folders that are relevant to MATLAB | what |
| See the full path to a file | which |
![]() | Viewing Files and Folders | Creating, Changing, and Deleting Files and Folders | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |