ed

An alternate edit function that accommodates partial filename matches.

You are now following this Submission

ed filename1 filename2 ...

Modified (shortcut) version of TMW's "Edit" function.

In this version, "unique partial matches" IN THE CURRENT DIRECTORY are treated as successes.

For example, if the current directory contains files called testformat.m, cssm.m, and workinprog.m, typing 'ed tes cs work' will suffice to launch the targeted mfiles in the editor as long as the partial matches are locally non-ambiguous. (If another file called 'tesselations.m' also exists in the current directory, no action will be taken for the first input argument.) Exact filename matches for files anywhere on the ML path will work just as if 'edit' were typed instead.

I use this function to the exclusion of edit now; it is a very handy little shortcut.

Cite As

Brett Shoelson (2026). ed (https://www.mathworks.com/matlabcentral/fileexchange/7177-ed), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0