ta = tr-tr/#slices
timing = [ta/(#slices-1), tr-ta]
Dear Michael,
Thank you for your reply. Actually TR is 1960 ms, but in MATLAB error report it is showing as 2.0 sec.. Then TE-40 ms. band width-1628 Hz/Px and ES-0.7ms (EPI-64). I don't understand why MATLAB is considering TE as 2.0 sec and what is A(I)=B? Please explain.
Thanks
Ramesh
________________________________
From: [log in to unmask] [[log in to unmask]] On Behalf Of Michael T Rubens [[log in to unmask]]
Sent: Saturday, July 02, 2011 8:34 PM
To: M.G. Ramesh Babu [MU-KMCIC]
Cc: [log in to unmask]
Subject: Re: [SPM] Slice timing
first you only have 1 element for slice order, then you have a string. i'm guessing thats the source of your problem. btw, how do you get 37 slices with a 2s TR? your protocol sounds kinda whack, whats your TE, ES/bandwidth, slice thickness out of curiosity.
Cheers,
Michael
On Sat, Jul 2, 2011 at 7:48 AM, M.G. Ramesh Babu [MU-KMCIC] <[log in to unmask]<mailto:[log in to unmask]>> wrote:
Dear SPMers,
I am facing problem in slice timing. I have resting state fMRI data (TR=1.96 sec, number of slice=37, interleaved). I am getting error in slice timing. I used different slice order like bottom, middle-top, etc. Every time i am getting error.
For slice order=1
Ref. slice=37
Error:
SPM8: spm_slice_timing (v3756) 19:05:57 - 02/07/2011
========================================================================
Your TR is 2.0
Failed 'Slice Timing'
In an assignment A(I) = B, the number of elements in B and
I must be the same.
In file "F:\Processing\spm8\spm8\spm_slice_timing.m" (v3756), function "spm_slice_timing" at line 232.
In file "F:\Processing\spm8\spm8\config\spm_run_st.m" (v2312), function "spm_run_st" at line 25.
The following modules did not run:
Failed: Slice Timing .
For slice order=1
Ref. slice=1
Error:
Your TR is 2.0
Failed 'Slice Timing'
In an assignment A(I) = B, the number of elements in B and
I must be the same.
In file "F:\Processing\spm8\spm8\spm_slice_timing.m" (v3756), function "spm_slice_timing" at line 232.
In file "F:\Processing\spm8\spm8\config\spm_run_st.m" (v2312), function "spm_run_st" at line 25.
The following modules did not run:
Failed: Slice Timing.
For slice order=Middle-bottom
Ref. slice=37
SPM8: spm_slice_timing (v3756) 19:09:33 - 02/07/2011
========================================================================
Your TR is 2.0
Failed 'Slice Timing'
Error using ==> mat2file
Index exceeds matrix dimensions (2).
In file "F:\Processing\spm8\spm8\@file_array\subsasgn.m" (v4136), function "subfun" at line 132.
In file "F:\Processing\spm8\spm8\@file_array\subsasgn.m" (v4136), function "subsasgn" at line 70.
In file "F:\Processing\spm8\spm8\spm_write_plane.m" (v1143), function "spm_write_plane" at line 33.
In file "F:\Processing\spm8\spm8\spm_slice_timing.m" (v3756), function "spm_slice_timing" at line 265.
In file "F:\Processing\spm8\spm8\config\spm_run_st.m" (v2312), function "spm_run_st" at line 25.
The following modules did not run:
Failed: Slice Timing
I appreciate, if any could give solution.
With Thanks
Ramesh
--
Research Associate
Gazzaley Lab
Department of Neurology
University of California, San Francisco