Installation guide

6 Editing and Debugging M-Files
the split, Go > Back and Forward do not go to any lines that were visited
in the lower (or right) view.
OpeningaSelectioninanM-File
Yo u can open a subfunction, function, file, v ariable, or Simulink model from
within a file in the Editor/Debugger. Position the cursor in the name and then
right-click and select Open Selection from the context menu. Based on w hat
the selection is, the Editor/Debugger performs a different action.
Selection Action
Subfunction Cursor moves to the subfunction within the current
M-file. If no subfunction by that name is foun d in
the current M -file, the Editor/Debugger runs the
open function on the selection, which opens the
selection in the appropriate tool, as shown for the
other selection types i n this table.
M-file or other text
file
Opens in the Editor/Debugger.
Figure file (.fig)
Opens in a figure window.
Variable Opens in the Array Editor.
Model Opens in Simulink.
Other If the selection is some other type, Open selection
looks for a matching f ile in a private d irectory in
the current directory and performs the appropriate
action.
After selecting a name, you can also choose Help on Selection from the
context menu to see documentation for the item. For example, select a
function, right-click and select Help on Selection. The reference page for
that function opens in a popup window, or if the reference page does not exist,
theM-filehelpappears. Formoreinformation, see “Getting Pop-Up Help
for Functions” on page 4-49
6-48