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:

Anonymous said...

Great, just what I needed. Thx!

freddy said...

many thanks. much easier than my previous solution.

Tom (Admin) said...

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