Main Content

Use Edit Command

  1. From the menu, tap Commands.

  2. Type edit filename where filename 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.

  3. In the edit screen, type the contents of the file.

  4. To save and run the file, tap .

Related Topics