edit
Edit or create file
Syntax
Description
edit
opens a new file calledUntitled.m
in the Editor. MATLAB®does not automatically saveUntitled.m
.
edit
opens the specified file in the Editor. Iffile
file
does not already exist, MATLAB asks if you want to create it.file
can include a partial path, complete path, relative path, or no path. Iffile
includes a partial path or no path,edit
will look for the file on the search path. You must have write permission to the path to createfile
. Otherwise, MATLAB ignores the argument.
You must specify the extension to open.mat
and.mdl
files. MATLAB cannot directly edit binary files, such as每分钟
and.mex
files.