No BSD License  

Highlights from
WHICHX

5.0

5.0 | 6 ratings Rate this file 5 Downloads (last 30 days) File Size: 3.7 KB File ID: #9076
image thumbnail

WHICHX

by Elmar Tarajan

 

18 Nov 2005 (Updated 12 Jan 2006)

File search within MATLAB search path using wildcards.

Editor's Notes:

This file was a File Exchange Pick of the Week

| Watch this File

File Information
Description

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.

EXAMPLES:
---
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

MATLAB release MATLAB 7.1.0 (R14SP3)
Other requirements tested on PCWIN- and LINUX-Computer.
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (9)
21 Nov 2005 John D'Errico

Splendid. It also runs on Mac OSX.

21 Nov 2005 Valeri Karlov

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.

22 Feb 2006 Evgeni Verbitski

Very, very good tuning of which! Very helpful in finding anything in old folders. Thanks!

14 May 2007 Kent Conover

Works well - thanks. I propose that whichx.m should be included in the next Matlab release (R2007b).

28 Nov 2007 Aurélien QUEFFURUST

Excellent! It is also great to be able to edit, run or cd the output

06 Mar 2008 Thierry Dalon

I would add for M-Files a link to call the help.

19 May 2008 Thierry Dalon

One Limitation:
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.

19 May 2008 Elmar Tarajan

Thank you Thierry.
I'll fix it as soon as possible.
the new version is almost ready.

29 Jul 2008 Thierry Dalon

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 :-(

Please login to add a comment or rating.
Updates
12 Jan 2006

some small bugs fixed...

Tag Activity for this File
Tag Applied By Date/Time
path Elmar Tarajan 22 Oct 2008 08:07:00
directories Elmar Tarajan 22 Oct 2008 08:07:00
files Elmar Tarajan 22 Oct 2008 08:07:00
dir Cristina McIntire 10 Dec 2008 16:59:56
which Cristina McIntire 10 Dec 2008 16:59:56
whichx Cristina McIntire 10 Dec 2008 16:59:56
matlab Cristina McIntire 10 Dec 2008 16:59:56
search Cristina McIntire 10 Dec 2008 16:59:56
wilcards Cristina McIntire 10 Dec 2008 16:59:56
patterns Cristina McIntire 10 Dec 2008 16:59:56

Contact us at files@mathworks.com