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:


2 comments:

Anonymous said...

Great, just what I needed. Thx!

freddy said...

many thanks. much easier than my previous solution.