
6 Editing and Debugging M-Files
Running M-Files in the E ditor /Debugg er
In this section...
“Running M-Files with No Input Arguments in the E ditor/Debugger” on
page 6-66
“Using Configurations — Running M-Files with Input Arguments in the
Editor/Debugger” on page 6-67
“Create and Run a Configuration for an M-file” on page 6-67
“Create and Run Multiple Configurations for an M-File” on page 6-72
“Find Configurations” on pag e 6-75
“Remove Configurations” on page 6-78
“Reassociate and Rename Configurations” on page 6-79
“See Also — Other Ways to Run M -Files from the Editor/De bug ger” o n
page 6-83
Running M-Files with No Input Arguments in the
Editor/Debugger
In the Editor/Debugger, to run a script M-file, or a function M-file that requires
no input arguments, click the Run button
on the toolbar. The b utton’s
tooltip includes the name of the file to be run, which is useful when you have
more than one file open. Alternatively, select Debug > Run filename.
If the file is not in a directory on the search path or in the current directory, a
dialog box appears, presenting you with options that allow you to run the file.
Yo u can either change the current directory to the directory containing the
file, or you can add the directory containing the file to the search path.
If the file has unsaved changes, running it from the Editor/Debugger
automatically saves the changes before running. In that event, the menu
item is Save File and R un filename.
IftheM-fileisascript,youcanviewthevalueofavariableinthefile,which
is called a datatip (like a tooltip for data). You need to set the preference to
show datatips in edit mode — select File > Preferences > Display,andfor
6-66
Komentarze do niniejszej Instrukcji