Dear Raphael,
thanks for pointing to that error. You corrected line looks fine.
Best,
Christian
On Mon, 28 Nov 2016 19:01:24 -0700, Raphael F.C. <[log in to unmask]> wrote:
>Dear experts,
>
>I was using the latest release from CAT12, and I am getting the follow
>error message when checking sample homogeneity:
>
>
>
>------------------------------------------------------------------------
>Running job #1
>------------------------------------------------------------------------
>Running 'Check sample homogeneity of 3D data'
>Failed 'Check sample homogeneity of 3D data'
>Error using ==
>Matrix dimensions must agree.
>In file
>"/Users/rcasseb/Documents/MATLAB/Toolboxes/spm12/toolbox/cat12/cat_stat_check_cov.m"
>(v1039), function "cat_stat_check_cov" at line 225.
>
>The following modules did not run:
>Failed: Check sample homogeneity of 3D data
>
>
>
>I tried debugging it a little bit and the line 225 is:
>
>if V(1).fname == V(2).fname
>I replaced it for:
>
>if strcmp(V(1).fname, V(2).fname)
>
>And now it is working. Is this right, or I have an error for real and,
>therefore, should not have done it?
>
>Thank you very much,
>Raphael
>--
>Raphael F. Casseb
>Medical Physicist, Ph.D. Student
>Medical Physics Lab - University of Campinas
>Contact: +55 19 3521-8246
>
|