The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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: 6,677
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


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.

" 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...


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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.