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)
OR
Click on the
New Script
or
New
button on the top left of the MATLAB window, as shown below:
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 top Button
Open
and you can browse in the pop-up window for
bagel.m
In the
Current Folder
Window, you can double-click on the name of a file to open it in the MATLAB editor.
Back to Lab1 page