Dear all,
I have downloaded the new script collection GLM_Flex from http://nmr.mgh.harvard.edu/harvardagingbrain/People/AaronSchultz/GLM_Flex.html for second level analyses.
When trying out the first step ("Create a model") with designs as included in the examples.m I get some error messages concerning some function/expression "sub2ind_aps". Is this due to some missing file? I'm using the latest SPM8 version 4290 and Matlab 2007b (or is the problem caused by this older Matlab version?). See the error messages below.
Thanks for your help!
Gabor
For 2x2 Between ANOVA
IN.N_subs = [5 5 5 5];
IN.Between = [2 2];
IN.Interactions = {[1 2]};
IN.EqualVar = [0 0];
IN.Independent = [1 1];
F = CreateDesign(IN);
Finished Creating Factor Matrix
Finished Creating Main Effects
Finished Creating Two Way Interactions
??? Undefined function or method 'sub2ind_aps' for input arguments of type 'double'.
Error in ==> CreateDesign>ParseDesign at 705
ind = sub2ind_aps(ss,sort(tmp));
Error in ==> CreateDesign at 147
[err errLevs adj adjLevs eff effLevs] = ParseDesign(IN,Factors,isWith,isCovar);
For 2x2 Within ANOVA
After "Finished Creating Three Way Interactions"
??? Undefined function or method 'sub2ind_aps' for input arguments of type 'double'.
Error in ==> CreateDesign>ParseDesign at 495
err(1,1) = sub2ind_aps(ss,[S S]);
Error in ==> CreateDesign at 147
[err errLevs adj adjLevs eff effLevs] = ParseDesign(IN,Factors,isWith,isCovar);
|