File Exchange Pick of the Week

February 26th, 2008

MATLAB Basics: Getting a directory listing

In the past we covered how to use UIGETFILE as an alternative to hardcoding the name of a file in your program. [click here] In this video, we will show how MATLAB can get a directory listing and use it to batch process the files in a directory.

Video Content

iconFiles.jpgiconPod.jpglazy.jpg

4 Responses to “MATLAB Basics: Getting a directory listing”

  1. mans replied on :

    Hello,
    I know that it is off topic but I hope I can an answer. Which software do you use to create these videos? They are very well created and they are very informative.

    Best regards
    Mans

  2. Doug replied on :

    Mans,

    I use Camtasia.

    http://www.techsmith.com/camtasia.asp

    Doug

  3. Russell W replied on :

    Wow! I work in computational psychology and really prefer to keep my subject’s data in individual .mat files with their subject numbers. Until now, when I aggregated the data I would physically move copies of the .mat files into new directories. Now I can keep them all in one and select them in a loop based on certain criteria. Awesome! You just saved me weeks of work!

  4. Doug replied on :

    Russell,

    Thanks for letting me know. We like to hear that these blogs are helpful to people. Be sure to subscribe to this, and the other MathWorks blogs for more great ideas!

    -Doug

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

These postings are the author's and don't necessarily represent the opinions of The MathWorks.