In this step, also known as motion correction, we realign the data such
that all functional images align with the first functional image,
accounting for and removing effects from participant movement after the
initial anatomical scans were collected.

In the spm99 directory for the participant who’s data you are
analyzing, type spm99 and hit return, then type ‘spm fmri’ and hit
return.

click ‘Realign’ button

Specify: number of subjects ‘1’

Specify: run sessions for subject 1: ‘3’

Once you input the number of runs, a box will pop up. You will complete
the following steps for each functional run. In this case, we had three
functional runs, so we complete this process three times, once for each
run.

Select functional run (e.g., wmem, directory that contains all data for
a particular run – stored as .img files)