Development Environment    

Navigating in an M-File

There are several options for navigating in M-files:

Going to a Line Number

Line numbers are displayed along the left side of the Editor/Debugger window. Select Go to Line from the Edit menu. Enter the line number in the edit box and click OK. The cursor moves to that line number in the current M-file.

Going to a Function

To go to a function (subfunction) in an M-file, click the function button on the toolbar. Select the function you want to go to from the list of all functions in that M-file. The list does not include functions that are called from the M-file, but only lists lines in the current M-file that begin with a function statement.

Finding a Selection

Within the current M-file, select a string. From the Edit menu, select Find Selection. The next occurrence of that string becomes highlighted. Use Find Again from the Edit menu to continue finding the next occurrences of the string.


 Appearance of an M-File Finding and Replacing a String