ed

An alternate edit function that accommodates partial filename matches.
2.1K Downloads
Updated 18 Mar 2005

View License

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 (2024). ed (https://www.mathworks.com/matlabcentral/fileexchange/7177-ed), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Search Path in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0