Dear Peter,
Is it possible that your subjects have different numbers of regressors each?
If this is the case, this should be the cause of the error, which occured due to the Toolbox not finding the expected number of regressors. The problem here is, that the PSC-extraction is unfortunately somewhat "dumb" as it expects all design matrixes to look the same (in terms of number and order of regressors) in order to calculate the mean PSC across the whole group. In particular, all subjects have to have the same number and order of regressors as the first subject. If any subject, however, has a lower number of regressors, you get the error you posted.
Would it be possible to make the program more flexible in order to accomodate different number or orders of regressors? Sure it would be... but I'm not really sure how practical this may turn out to be as you would have to specify the regressors of interest beforehand and then go through each and every design matrix in oer to designate the correct column for your regressors of interest. This may make things rather inconvenient.
Other options? The easiest approach is to look at your individual subjects' designs and put those together into separate groups which have identical ones. Save the PSCs for each region you are interested (remember to rename the txt-files) and the process the next group, until you got all the data saved. If you then open the files, e.g., in excel or MATLAB, you can reorder / delete the different rows (pertaining to the experimental conditions) so that these match across subjects and do whatever kind of statistics / visualisation you need.
Hope this helps
Simon
-----------------------------------------
Simon Eickhoff
Institut for Medicine (IME); Research Center Jülich
Leo-Brandt-Str. 5; 52425 Juelich, Germany
Phone + 49 2461-61-5219 / Fax + 49 2461-61-2820
e-mail: [log in to unmask] / [log in to unmask]
----- Original Message -----
From: Peter Erhard <[log in to unmask]>
Date: Wednesday, November 28, 2007 10:32 am
Subject: [SPM] Anatomy toolbox error
>
> Dear anatomy toolbox experts,
>
> we have been using the anatomy toolbox with success and we
> find it very useful.
> We use the a.t. with spm2 and Matlab 6.5.
> Now we tried the "Mean response group analysis" option and get the
> following error message in the matlab window after successful
> calculation
> of contrast and selection of cluster and maximum, when hitting
> the
> "%signal change" button:
>
> ??? index exceeds matrix dimensions.
>
> error in ==> C:\spm2\toolbox\anatomy\se_PSC_area.m
> On line 25 ==> condSeq = [condSeq xSPM.Sess(1).Fc(i).i(1)];
>
> error in ==> C:\spm2\toolbox\anatomy\se_anatomy.m
> On line 623 ==> psc(i) = se_PSC_area(group(i).xSPM,targets);
>
> ??? Error while evaluating uicontrol Callback.
>
>
> Please let us know, how we can solve this problem.
>
> Best,
> TIA,
> Peter Erhard & Judith Dominguez
>
> --------------------------------------------------------
> Peter Erhard, Ph.D. Telefon: 0421/218-8784
> Universitaet Bremen Fax: 0421/218-3076
> Fachbereich 2 (Biol./Chemie) [log in to unmask]
> AG Prof. Leibfritz
> Leobener Straße NW 2/C Postfach
> D-28359 Bremen D-28334 Bremen
-------------------------------------------------------------------
-----
--------------------------------------------------------------
Forschungszen
trum Jülich GmbH
52425 Jülich
Sitz der Gesellschaft: Jülich
Eingetragen im
Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsich
tsrats: MinDirig'in Bärbel Brumme-Bothe
Geschäftsführung: Prof. Dr. Achim Ba
chem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Dr. Sebastian
M. Schmidt
----------------------------------------------------------------
---
-------------------------------------------------------------------
|