I had this "index out of bounds" error and it turned out that some of my
normalised images were blank (I hadn't set AC coordinate correctly on
some images before normalisation). I guess there could be many other
reasons but I certainly won't be assuming I've done everything without
checking from now on... ('check reg' is good for this).
Joel
Ueno Takefumi wrote:
> Hi,
>
> Does anyone know the meaning of the error I've got in spm_results as
> below? I thought the caliculation went well.
> I tried to read the code, but I could not understand why the
> vector x has no elements.....
> I'm trying to get the group difference between 18 patients images and 18
> patients image by VBM method.
> Images were saved in float(8bit) regulation.
> And I have tried to do it in int8.
> But tricky point is that I am taking the subtraction images between 2
> point of timecourse, so that I'm checking the developmental difference.
>
> Thanks,
>
> Takefumi Ueno
> SNAPL, Stanford University
> 780 Welch 208c, Palo Alto, CA, 94304, USA
>
> In spm_getSPM at 1 ...written spmT_0002.img
> SPM computation : ...initialising
> ??? Attempted to access x(1); index out of bounds because numel(x)=0.
>
> Error in ==> spm_Tcdf at 92
> F(ml) = 0.5 + atan(x(mlx))/pi;
>
> Error in ==> spm_getSPM at 447
> Ps = (1 - spm_Tcdf(Z,df(2))).^n;
>
> Error in ==> spm_results_ui at 260
> [SPM,xSPM] = spm_getSPM;
>
> ??? Error using ==> figure
> Error while evaluating uicontrol Callback.
>
> ??? Error using ==> spm_get
>
--
-----------------------------------------------
Joel Dunn
Research Assistant
PET Imaging Centre
Guy's, King's and St Thomas' School of Medicine
Lower Ground Floor, Lambeth Wing,
St Thomas' Hospital, Lambeth Palace Road,
London SE1 7EH UK Tel: 020 7188 7445
Email: [log in to unmask] Fax: 020 7620 0790
-----------------------------------------------
|