Try something based on the following...
V=spm_vol(spm_get(Inf,'*.img','Select images'));
% Select some voxels to analyze (in this case from 20,20,20 to 29,29,29).
[x,y,z] = ndgrid(20:29,20:29,20:29);
x=x(:)'; y=y(:)'; z=z(:)';
dat=zeros(length(V),length(x));
for i=1:length(V),
dat(i,:) = spm_sample_vol(V(i),x,y,z,0);
end;
Best regards,
-John
On Tuesday 05 November 2002 10:58, Giuseppe Blasi wrote:
> > Dear SPMers
>
> Our aim is to perform a statistical analysis before the t test in SPM99
> which we will compare with the spm's output statistic.
> Then, we need to enter in spm before the t test, after the smoothing to
> extract voxels's timeseries, but not the cluster's timeseries.
>
>
> We would sincerely appreciate any help in this regard.
----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description:
----------------------------------------
--
Dr John Ashburner.
Functional Imaging Lab., 12 Queen Square, London WC1N 3BG, UK.
tel: +44 (0)20 78337491 or +44 (0)20 78373611 x4381
fax: +44 (0)20 78131420 http://www.fil.ion.ucl.ac.uk/~john
|