File Exchange Pick of the Week

Our best user submissions

Wildcard WHICH

This is a very exciting week for Scott and Doug’s POTW – we get to take the week off, to make room for a pick from our very special guest, John D’Errico. Thanks for the vacation, John! Here’s what John has to say …

For those of us who love to ask questions of matlab, we can ask who, whos, which, what, and even why. There is a nice modification of which to be found in whichx. Whichx accepts wildcards, so I can do the following:

>> whichx fminsearch*

run /Users/johnderrico/Documents/Files/work in progress/fminsearchbnd2.m
run /Users/johnderrico/Documents/Files/work in progress/fminsearchbndx.m
run /Users/johnderrico/Desktop/My_FEX/fminsearchbnd.m
run /Users/johnderrico/Desktop/My_FEX/opt_reg_tips/fminsearchbnd.m
run /Applications/MATLAB701/toolbox/matlab/funfun/fminsearch.m

You will find links in your command window, allowing you to run or edit any of
the functions it finds with no more than a mouse click. Try whichx. I predict you
will find it useful.

Now if somebody will just give me the answer to “when”, “where”, and “how”,
I’ll be all set.

  • print
  • send email


要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。