Assignment 3 (due Wednesday, Feb. 1)

Hints

The challenge in this assignment is handling the variability across studies in the naming at different levels of the data hierarchy. For example, run names appear to differ frequently, and some studies have one experiment whereas others have two.

If one of your studies has more than one experiment, then you need to add a for-loop to loop over each experiment. When placing the for and end statements, remember that subjects, sessions, and runs are nested within experiment.

Run naming schemes appear to differ by experiment. This means that you need to set run_stub conditionally, depending on the experiment. There are two types of conditional statements in Matlab that are commonly used for this purpose. One is if-then-else and the other is switch. They accomplish the same thing. Switch statements are useful if you are doing conditional branching based on the value of a string, for example your study's accession number, e.g. 2-2003-113K5.

Much of the information about run variability can be contained in structure arrays, where each element in the array pertains to a study, experiment, or subject.

If you get stuck, feel free to look at other groups' code for ideas about how to structure your code. You should all have read-permissions on each other's files. Also, if you find yourself beating your head against a coding problem and are not making headway, ask me for help.

Petr's Programming Tips