There's two issues here:
(1) What sequence is the right one, ie that SPM expects given the actual slice timing used; and
(2) How to generate the desired sequence (once you've dealt with (1)) using Matlab syntax.
Speaking only to issue (2), the right way to go about it is to just try things at the matlab command line. For example:
>> n = 34;
>> [1:2:n 2:2:n-1]
ans =
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32
>> [2:2:n 1:2:n-1]
ans =
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33
>> [1:2:n 2:2:n]
ans =
1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34
If I have this correct, you mentioned the first two possibilities in your post. My impression though is that you want the last one.
Best,
S
|