Use Edit Command
From the menu, tap Commands.
Type
edit
filename
wherefilename
is the name of an existing file or a new file.To create a text file instead of a MATLAB® file, use the file extension
.txt
. Typing a file name without an extension creates a MATLAB (.m
) file.In the edit screen, type the contents of the file.
To save and run the file, tap .