WHICHX file search within MATLAB search path using wildcards
The output in command window is linked, so that is possible to start M-Files, open MDL-, FIG-files and other types in editor or GUIDE directly. Please look on the screenshot.
WHICHX *.m lists all the M-files in the matlab search paths.
D = WHICHX('*.m') returns the results in an M-by-1
structure with the fields:
name -- filename
date -- modification date
bytes -- number of bytes allocated to the file
isdir -- 1 if name is a directory and 0 if not%
path -- directory
See also DIR, MATLABPATH, CD
Elmar Tarajan (2021). WHICHX (https://www.mathworks.com/matlabcentral/fileexchange/9076-whichx), MATLAB Central File Exchange. Retrieved .
Another limitation: it does not display methods files that is functions that are in a class directory. (because these directory are not returned by the path function).
So in some cases the which function returns more output than whichx :-(
Thank you Thierry.
I'll fix it as soon as possible.
the new version is almost ready.
If several M-files of same name are found, the links for run and edit will always open the "dominant" one.
Add full path in input to run and edit and use run function for run.
I would add for M-Files a link to call the help.
Excellent! It is also great to be able to edit, run or cd the output
Works well - thanks. I propose that whichx.m should be included in the next Matlab release (R2007b).
Very, very good tuning of which! Very helpful in finding anything in old folders. Thanks!
Nice fast search. Real help. Before I used wwhich (from central file exchange), but in Matlab 7.1 it stopped working (do not know why). But, whichx works great.
Splendid. It also runs on Mac OSX.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!