Hello, SPMers,
Another puzzled error messages from the spm2b batch.
Is it telling me that the design matrix cannot be generated?
I might have specified something wrong in the previous part?
Great Thanks for any idea or suggestion. Hope I can get this work
before the new year comes! :)
[The Error Message]:
====================================================
The Work Directory will be E:\subject05\LOG
-----------------------------------------------------------------
SPM2: spm_fmri_design (v2.33) 15:16:46 - 31/12/2002
----------------------------------------------------------------
??? Error using ==> horzcat
All matrices on a row in the bracketed expression must have the
same number of rows.
Error in ==> c:\spm2b\spm_fMRI_design.m
On line 309 ==> X = [X spm_detrend(C)];
Error in ==> c:\spm2b\spm_fmri_spm_ui.m
On line 209 ==> SPM = spm_fMRI_design(SPM);
Error in ==> E:\ts05\stat_ts05.m
On line 129 ==> SPM = spm_fmri_spm_ui(SPM);
>>
[Part of the Batch]:
================================
% specify data: matrix of filenames and TR
%===========================================================================
Directory = 'E:/subject05';
Filter = 'sw*.img';
SPM.xY.P = spm_get('files',Directory,Filter);
SPM.xY.RT = 2; % seconds
% Configure design matrix
%===========================================================================
SPM = spm_fmri_spm_ui(SPM);
% Estimate parameters
%===========================================================================
SPM = spm_spm(SPM);
Thanks again and Wish everyone a productive year,
Yuki Chen
|