Link Search Menu Expand Document

Batch processing

This material is presented as a series of short videos that cover

  • for … loops
  • how to loop through all the files of a given type in a directory
  • using an additional function to perform more complex tasks
  • some pointers on organizing projects

Accessing files

See GitHub for instructions on how to download the course material to your local computer.

The source files for this lecture are at <repo>/lectures/batch_processing

Core materials

  • Lecture videos

For … loops

A common way to repeat a task, or by using a nested loop, a combination of tasks

Loop through files in a directory

A simple example collating data from all of the Excel files in a directory

Using an additional function to process the task

Demonstrates how to use a “helper” function to handle more complex processing. This video also demonstrates some techniques for working with dates and times in MATLAB.

Organizing projects

Tips on how to organize projects and document the workflow.


Table of contents