For SPM2, try:
http://www.sph.umich.edu/~nichols/JohnsGems.html#Gem6
For SPM5, try:
V=spm_vol(spm_select(Inf,'*.img'));
x = 32;
y = 32;
z = 32;
dat = zeros(length(V),1);
for i=1:length(dat),
dat(i) = spm_sample_vol(V(i),x,y,z,0);
end;
or, you could try:
http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0804&L=SPM&P=R26666
Best regards,
-John
On Thursday 31 July 2008 15:06, Ada Leung wrote:
> Dear SPMers,
> I like to plot the behavioral performance against the gray matter density
> or volume at a particular coordinate or brain region. May I ask how I could
> extract the gray matter density or the gray matter volume. Thanks for your
> suggestion in advance.
> Thanks,
> Ada
|