Jo Polak wrote:
>
> 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});
At first sight there is missing 'analyses' definition, that is required
for spm_bch(). Something like this:
analyses = struct ( ...
'type', [1], ...
'index', [1], ...
'work_dir', [1], ...
'mfile', [1] ...
);
type = { 'model' };
work_dir = { '.' };
mfile = { 'test_model' };
Is this omission intentional?
Furthermore, there are three syntax errors in your m-file - see lines
marked using '***'.
When I start your m-file using spm_bch(), Matlab prints:
Can't evaluate test_model of 'analyses'
Do you use spm_bch?
Do you run just this m-file or do you include it from some others?
I don't know why your Matlab does not print the same error msg.
Tomas
|