It is untested code, but maybe this could help...
mni = [x y z];
P = spm_select(1,'nifti');
Nii = nifti(P);
vox = round(Nii.mat\[mni 1]');
Nii.dat(vox(1),vox(2),vox(3))
Best regards,
-John
On 12 March 2012 14:23, Sabin Khadka <[log in to unmask]> wrote:
> Hi all,
> How can I get value (of eg: spmT0001) of particular MNI coordinate outside of spm GUI.
> -SK
|