Print

Print


Try:
sliceorder = [1 3 5 etc];
nslices     = 23;
not_ok     = length(sliceorder)~=nslices | max(sliceorder)>nslices | ...
min(sliceorder)<1 | any(diff(sort(sliceorder))~=1)

If not_ok is 1, then there is a problem with the entered sliceorder.
If this is the case, then you can identify the problem with:

length(sliceorder)~=nslices
max(sliceorder)>nslices
min(sliceorder)<1
any(diff(sort(sliceorder))~=1)

Best regards,
-John

> When attempting to perform slice timing correction using option #4 "User
> Specified"  Interleave, SPM will not accept any inputs. The data in
> question is a set of 23 sagittal scans acquired left to right with GE
> epibold interleaving (1 3 5 etc).  I'm wonderling if anyone has encountered
> this problem and perhaps has a fix.  We are using Matlab 6 under Linux 7.1.
>  Is there a hard coded default option we need to change to enable the user
> specified option?

--
Dr John Ashburner.
Wellcome Department of Cognitive Neurology.
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
mail: [log in to unmask]