Thanks for your help. The m-file that doesn't run properly is:
%---------------------------------------------------------------
% user variables defined here
%---------------------------------------------------------------
F1 = spm_get_files('Files', 'd:\s001456\fM','s19*.img');
On1 = [ 16 36 54 76 96 114 130 150 174 192 210 230 252 ];
%---------------------------------------------------------------
% batch variables defined here for analysis 'model'
%---------------------------------------------------------------
model(1) = struct( ...
'types', 4, ...
'global_effects', {'Scaling'}, ...
'burst_mode', 0, ...
'HF_fil', 'specify', ...
'HF_cut', [120], ...
'LF_fil', 'hrf', ...
'LF_cut', 4, ...
'int_corr', 'none', ...
'now_later', 1, ...
'stop_writing', 0, ...
'trial_fcon', 0, ...
'RT', 1.125, ...
'replicated', 0, ...
'nsess', 1, ...
'nscans', [280], ...
'files', {{F1}}, ...
'conditions_nb', [1], ...
'conditions', [1], ...
'regressors_nb', [0], ...
'regressors', [], ...
'parametrics_type', {{'none'}}, ...
'parametrics', [] ...
'stochastics_flag', [0], ...
'stochastics', [], ...
);
%-------------------------------------------
conditions(1) = struct( ...
'names', {{'Cues')}, ...
'onsets', {On1}, ...
'types', {{'events'}}, ...
'bf_ev', [1], ...
'bf_ep', [], ...
'volterra', 0, ...
'variable_dur', 0 ...
);
%-------------------------------------------
bf_ev(1) = struct( ...
'ev_type', 2, ...
'win_len', [] ...
);
>
>Jo Polak wrote:
> >
> > Hi,
> > I've just started (trying) to use the batch mode for specifying and
> > estimating models, but cannot get it to work. I have no problem using
>batch
> > mode for pre-processing and smoothing, but when try models, I always get
>the
> > following error message:
> >
> > ??? Error using ==> spm_bch_bchmat
> > cannot eval test_model : check your paths or parameter file
> >
> > Error in ==> C:\MATLABR11\spm99\spm_bch.m
> > On line 127 ==> BCH.bch_mat =
> > spm_bch_bchmat(mfileA{cA},typeA{cA});
> >
> > In the example mfile provided in SPM help, there is a parameter file
> > specified in the user defined variables:
> >
> > p = '/home/shallice/Rik/SPM99course/CatStats/params.mat'
> > load(p);
> >
> > But there is no explanation of what this file is or why it is included.
>Is
> > this the parameter file I am missing?
>
>yes, it is just example
>
>i've successfully used batch mode for statistics, i can help you,
>but send whole m file
>
>Tomas
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
|