Dear Guillaume
I got NO zero residuals (Y) with
[Y,xY] = spm_summarise(V,XYZ);
where,
V = cellstr(spm_select('FPList',pwd,'^Res\_[0-9]+\.nii$'))';
XYZ = [3 x m] double for my ROIs
-------------------------------------------------------------------------------------
I don't know though why spm_get_data() retrieve zero residuals. According to the documentation
[Y] = spm_get_data(V,XYZ,check);
% V - [1 x n] struct array of file handles (or filename matrix)
% XYZ - [3 x m] or [4 x m] location matrix (voxel)
% check - check validity of input parameters [default: true]
% Y - (n x m) double values
so, I thought that if I did
V = cellstr(spm_select('FPList',pwd,'^Res\_[0-9]+\.nii$'))';
XYZ = my m ROIs as [3 x m] double
[Y] = spm_get_data(V,XYZ);
I should get the residuals (Y), but instead, I got zeros.
-------------------------------------------------------------------------------------
Thanks,
Maaly
|