Try '(i1-i2)./i3' . A '/' will attempt to do a matrix division, whereas a './'
will do it element by element.
Best regards,
-John
On Wednesday 05 November 2008 15:18, Juergen Haenggi wrote:
> Dear SPM experts
>
> I tried to compute z-score images by subtracting an average image from an
> individual image and dividing by the standard deviation image ((i1-i2/i3)),
> but the following error occurred:
>
> SPM5: spm_imcalc_ui (v$Rev: 940 $) 16:13:32 - 05/11/2008
> ========================================================================
> Warning: Rank deficient, rank = 82, tol = 1.0753e-14.
>
> > In spm_imcalc at 101
>
> In spm_imcalc_ui at 161
> In spm_config_imcalc>fun at 154
> In spm_jobman>run_struct1 at 1587
> In spm_jobman>run_struct1 at 1597
> In spm_jobman>run_struct1 at 1597
> In spm_jobman>run_struct at 1516
>
> Error running job: Error using ==> spm_imcalc at 103
> "(i1-i2)/i3" produced incompatible image.
> In file "/Applications/MATLAB74/work/spm5_upd1782/spm_imcalc.m" (v184),
> function "spm_imcalc" at line 103.
> In file "/Applications/MATLAB74/work/spm5_upd1782/spm_imcalc_ui.m" (v940),
> function "spm_imcalc_ui" at line 161.
> In file "/Applications/MATLAB74/work/spm5_upd1782/spm_config_imcalc.m"
> (v1032), function "fun" at line 154.
> --------------------------
> Done.
>
>
> What is wrong? In the past, it works with other data.
>
> Thanks in advance
> Best regards
> Juergen
>
> -----------------------------------------------------------
> Juergen Haenggi
> Ph.D. (Dr. des.)
> Division of Neuropsychology
> Institute of Psychology
> University of Zurich
> Binzmuehlestrasse 14, PO Box 25
> 8050 Zurich, Switzerland
> 0041 44 635 73 97 (phone office)
> 0041 76 445 86 84 (phone mobile)
> 0041 44 635 74 09 (fax office)
> BIN 4.D.04 (office room number)
> [log in to unmask] (email)
> http://www.psychologie.uzh.ch/neuropsy/ (website)
> http://www.juergenhaenggi.ch (private website)
> -----------------------------------------------------------
|