Development Environment | ![]() ![]() |
Creating a New M-File in the Editor/Debugger
To create a new M-file in the Editor/Debugger, either click the new file button on the MATLAB toolbar, or select File -> New -> M-file from the MATLAB desktop. You can also create a new M-file using the context menu in the Current Directory browser - see Creating New Files. The Editor/Debugger opens, if it is not already open, with a blank file in which you can create an M-file.
If the Editor/Debugger is open, create more new files by using the new file button on the toolbar, or select File -> New -> M-file.
Function Equivalent
Type edit
in the Command Window to create a new M-file in the Editor/Debugger.
![]() | Starting the Editor/Debugger | Opening Existing M-Files in the Editor/Debugger | ![]() |