Friday, July 26, 2013

Octave/Matlab: Loop through Files in a Directory

Looping through files that match a certain pattern is an easy and routine operation for a BASH shell for example:

One can mimic this feature from within an Octave or Matlab program by using the command "glob". Here's how:


3 comments:

  1. Great, just what I needed. Thx!

    ReplyDelete
  2. many thanks. much easier than my previous solution.

    ReplyDelete
  3. I like the way you explain it...Thanks for your hard work. I learned a lot from your blog. For loop Matlab

    ReplyDelete