Specifying Working Directory

Picture1
Specify a working directory (Current Folder) in which all the files will be written into

 

Picture2
Specify a correct pathway in Command Window to link Matlab and SPM (the exact location of SPM folder need to be known)

 

Picture3
Type “spm” and choose “fMRI” for fMRI data analysis

 

Picture4
SPM is now ready for data analysis