You need to add the xCon structure to the SPM variable and properly fill the
xCon with the correct fields. If you have an old SPM.mat file you can see
what the fields should be.

If you are simple wanting to cluster and find the peaks, the SPM.mat file is
not actually needed with the peak_nii.m program that I recently wrote. There
is a previous post on usage of peak_nii.m. It is available for download from

Best Regards, Donald McLaren
D.G. McLaren, Ph.D.
Postdoctoral Research Fellow, GRECC, Bedford VA
Research Fellow, Department of Neurology, Massachusetts General Hospital and
Harvard Medical School
Office: (773) 406-2464
This e-mail contains CONFIDENTIAL INFORMATION which may contain PROTECTED
intended only for the use of the individual or entity named above. If the
reader of the e-mail is not the intended recipient or the employee or agent
responsible for delivering it to the intended recipient, you are hereby
notified that you are in possession of confidential and privileged
information. Any unauthorized use, disclosure, copying or the taking of any
action in reliance on the contents of this information is strictly
prohibited and may be unlawful. If you have received this e-mail
unintentionally, please immediately notify the sender via telephone at (773)
406-2464 or email.

On Thu, May 19, 2011 at 4:13 PM, Joshua Goh <[log in to unmask]> wrote:

> Dear list,
> I have a .img/.hdr file that consists of t-values computed externally to
> SPM. Is there a way I can display or use this t-map in spm_results_ui? This
> is so that I can apply the cluster threshold as well as spm_list to identify
> global and local peaks.
> Thanks,
> Josh