Dear all,
I think the attached code does what you want. It uses the pooled variance
across voxels in the analysis to write new SPM_T images.
You need to have entered and evaluated your contrast using the SPM results
interface, generating the SPM T image. Thence, from the matlab window;
worsleyize
Select the analysis and contrast you want to convert, and it will write out a
new image with the name spmWZ_<contrast no>.img. As you can see, the code is
mostly interface, the meat of the thing is only a couple of lines.
Please let me know if there are any problems.
Best,
Matthew
|