Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: How to search for m files in Matlab path, but using part of the name
(or wild card)?

Replies: 1   Last Post: Nov 27, 2012 11:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 5,655
Registered: 2/7/05
How to search for m files in Matlab path, but using part of the name
(or wild card)?

Posted: Nov 25, 2012 8:14 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Suppose I have, on my matlab path, some m files with names
that start with some common string. Like

foo_something.m
foo_something_else.m

and these files can be anywhere on the file system, but
they are in the Matlab path.

I'd like to be able to do something like

which foo -all

and get list of all m files that starts with "foo"

right now, 'which foo' only finds foo.m and not
other names that starts with this string.

What would be nice is to use wild card as well,
so to do

which -all foo*b

and it will find all files with the above name pattern.

help:
" which FUN displays the full pathname of the function with the name FUN."

I looked at few things on Matlab file exchange, but nothing
I can find. Still searching...

thanks,
--Nasser



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.