CS112: Lab1 :: Introduction to MATLAB ::: MATLAB editor
Using the editor to create a brand new file?
Here are several ways to create a new file in MATLAB:
From the Command Window: Type
edit
(this opens a new editor window as shown below)
Click on the blank page icon circled in orange:
Use the Menus:
File --> New --> M-File
Starting the MATLAB editor opens a new window to create/edit text files that looks like this:
Editing an already existing file?
Let's say your file is called
bagel.m
From the Command Window: Type
edit bagel
Use the Menus:
File --> Open
and you can browse in the pop-up window for
bagel.m
In the
Current Directory
Window, you can double-click on the name of a file to open it in the MATLAB editor.
Back to Lab1 page