Tips Martin Pyka on 20 Aug 2008 03:39 pm
If you need the design matrix of your first level analysis for other applications you can print it out or write it out into a file with Matlab code. All you have to do is: load the SPM.mat file into the workspace and access the right variable.
> SPM.xX.X % this is the designmatrix
> SPM.xX.X(:,1) % this is the first column of your design matrix
> SPM.xX.X(2,:) % this is the second row of your design matrix
You can use the commands fwrite or fprintf for writing these data to a file.
You can find more information about the SPM-struct in the file spm_fMRI_design.m. Just type
> help spm_fMRI_design
to read more about this variable.