Dear all,
Could anyone point where is the problem for using the contrast manager? or is this is a bug to be fixed. I setup a paired t-test in spm5,
using batch scripts, which ran smoothly and I can get the spmT & con files without any problem. But when I tried to view the results, matlab
kept beeping with the following error messages. Once I hit the results button, I can't review the design matrix anymore, regardless defining the contrast.
It's the same error if I set up and estimate the paired t-test manually using the GUI.
Attached below is the code for setting paired t test and the error messages I got when I hit the button "results"
Thanks in advance.
Ze
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% code for paired t test modeling
jobs{1}.stats{1}.factorial_design.des.pt.dept = 0.0;
jobs{1}.stats{1}.factorial_design.des.pt.variance = 1.0;
jobs{1}.stats{1}.factorial_design.des.pt.gmsca = 0.0;
jobs{1}.stats{1}.factorial_design.des.pt.ancova = 0.0;
jobs{1}.stats{1}.factorial_design.cov = struct([]);
jobs{1}.stats{1}.factorial_design.masking.tm.tm_none = [ ];
jobs{1}.stats{1}.factorial_design.masking.im = 1.0;
jobs{1}.stats{1}.factorial_design.masking.em{1} = '';
jobs{1}.stats{1}.factorial_design.globalc.g_omit = [ ];
jobs{1}.stats{1}.factorial_design.globalm.gmsca.gmsca_no = [ ];
jobs{1}.stats{1}.factorial_design.globalm.glonorm = 1.0;
jobs{1}.stats{1}.factorial_design.dir{1} = gpstatdir;
jobs{1}.stats{1}.factorial_design.des.pt.pair=g1pairs;
spm_jobman('run',jobs);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% error message
??? Error using ==> image
Error using ==> image
Image CData can not be complex
Error in ==> spm_conman at 975
hDesMtxIm = image((varargin{2}.nKX+1)*32);
Error in ==> spm_conman at 944
spm_conman('ImDesMtx',xX,H.hDesMtxAx) %-Depict DesMtx
Error in ==> spm_conman at 812
[F,cF] = spm_conman('Initialise','on',SPM,STATmode,n,Prompt,Mcstr,OK2chg);
Error in ==> spm_getSPM at 248
[Ic,xCon] = spm_conman(SPM,'T&F',Inf,...
Error in ==> spm_results_ui at 274
[SPM,xSPM] = spm_getSPM;
??? Error while evaluating uicontrol Callback
??? Attempt to reference field of non-structure array.
Error in ==> spm_conman at 1631
[c,I,emsg,imsg] = spm_conman('ParseCon',str,xX.xKXs,STAT);
??? Error while evaluating uicontrol Callback
??? Attempt to reference field of non-structure array.
Error in ==> spm_conman at 1631
[c,I,emsg,imsg] = spm_conman('ParseCon',str,xX.xKXs,STAT);
----------sent by wemail ----
Ze Wang, Ph.D
Assistant Professor of Biomedical Engineering,
Treatment Research Center,
Dept of Psychiatry,
Med School,
University of Pennsylvania,
3900 Chestnut St.
Philadelphia, PA 19104
Tel: 215-222-3200-123
Fax: 215-386-6770
Tel at CFN: 215-662-7341
|