Dear Jim,
The relevant function in SPM is spm_DesRep.m. You are right that it will
only display at most 32 parameter names; this is a setting you can
change at this line:
https://github.com/spm/spm12/blob/r7487/spm_DesRep.m#L733
You can then call the function directly:
load SPM.mat
spm_DesRep('DesMtx',SPM.xX,SPM.xY.P,SPM.xsDes);
spm_print
or use the "SPM > Stats > Model review" module in the batch interface.
If there isn't enough space to display all of the parameter names on top
of the design matrix, edit the position of the axes containing them so
that it appears elsewhere in the figure.
Best regards,
Guillaume.
On 05/11/2019 20:43, Jim Nikelski wrote:
> Hi SPM Experts,
>
> I've created a bunch of SPM.mat files, and would like to print (to pdf
> or ps) the various design matrices.
> My design matrices are comprised of 3 conditions and 6 movement
> parameters, over 4 sessions -- thus, I have approx 40 columns.
>
> I have no problem writing a Matlab script to load the SPM.mat from
> each of the subject directories, but I unfortunately am presented with
> the following issues:
>
> (1) when viewing the design matrix interactively, only every 2nd or
> 3rd parameter is labelled -- I would like to see all parameter names.
> I really have no intention of printing these reports, so no need to
> fit on A4 or 8.5x11 paper.
>
> (2) what SPM12 function do I call from within Matlab to produce the
> needed output? I suppose the function would need to be passed all or
> part of
> SPM.mat, in addition to the canvas size ... but I've not been able to
> find such a function. Simply choosing the SPM print function, just
> saves a copy of the conservatively-labelled design matrix.
>
> Sincerely,
>
> -jim
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|