9.10: Matlab Scripts For This Chapter
selected template will load here
This action is not available.
I’ve created a set of three scripts that shows how to implement the artifact correction approach described in this chapter. There are three scripts, which you can find in the Chapter_9 folder. The script names begin with MMN_artifact_correction_ and then end in phase1 , phase2 , or phase3 . They divide the process into—you guessed it!—three phases.
The script processes the data from Subjects 1–10. I spent an entire afternoon going through the data carefully, deciding which channels should be interpolated, determining which ICs to remove, etc. But even after devoting that much time, I did only a superficial job. You can probably do better if you spend more time.
While I was going through the data to determine the various parameters for a given participant, I put the parameters in a set of spreadsheets. The scripts then read from these spreadsheets. For the first two phases, I didn’t actually run the scripts on all 10 participants at once. As noted in the comments inside the scripts, you can modify the scripts slightly to work on one participant at a time. I went back and forth between the scripts and the GUI to set the various parameters. You won’t need to do that to run the scripts, because all the parameters are in the spreadsheets (which are provided in the Chapter_9 folder). However, you’ll probably want to adopt this one-participant-at-a-time approach when you’re analyzing your own data.
Note that the Excel spreadsheets contain a column for comments. These comments aren’t used by the scripts, but they’re very useful in helping you to remember why you made various decisions. Your future self will thank you.