Home > fmri > design_tests > design_model.m

design_model

PURPOSE ^

design_model.m

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 design_model.m

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % design_model.m
0002 
0003 cond_names = {'a1b1','a1b2','a2b1','a2b2'};
0004 ncond = length(cond_names);
0005 
0006 cond_types = {'epochs','epochs','epochs','epochs'};
0007 
0008 bf_ev_idx = zeros(1,ncond);
0009 bf_ep_idx = ~bf_ev_idx;
0010 
0011 nscan_per_cond = 20;
0012 
0013 for icond = 1:ncond
0014   sot{icond} = (icond-1)*nscan_per_cond;
0015 end
0016 
0017 durs = {[], ...
0018       [], ...
0019       [], ...
0020       [] ...
0021       };
0022 
0023 %
0024 %  Model parameters
0025 %
0026 
0027 model = struct( ...
0028  'types',          1, ...        % specify and estimate
0029  'nsess',          2, ...
0030  'RT',             1, ...
0031  'nscans',         [80 80], ...
0032  'replicated',     1, ...
0033  'same_time_param', 1, ...
0034  'conditions_nb',  [ncond], ...     
0035  'conditions',     [1], ...
0036  'stochastics_flag', [0], ...
0037  'stochastics',    [], ...
0038  'parametrics_type', {{'none'}}, ...
0039  'parametrics',    [], ...
0040  'regressors_nb',  [0], ...
0041  'regressors',     [1], ... 
0042  'global_effects', {'none'}, ...
0043  'burst_mode',     0, ...
0044  'HF_fil',         'none',  ...
0045  'HF_cut',         [], ...
0046  'LF_fil',         'none', ...
0047  'LF_cut',         [], ...
0048  'int_corr',       'none', ... 
0049  'trial_fcon',     1, ...
0050  'now_later',      0, ...
0051  'stop_writing',   0, ...
0052  'files',          {{'blah'}} ...
0053 );
0054 
0055 
0056 regressors(1) = struct( ...
0057     'names', {'subject'}, ...
0058     'values', ones(40,1) ...
0059     );
0060 
0061 %
0062 %  Conditions structures
0063 %
0064 
0065 conditions(1) = struct( ...
0066  'names',   {cond_names}, ...
0067  'onsets',  {sot}, ...   
0068  'types',    {cond_types}, ... 
0069  'variable_dur', 0, ...
0070  'durations', {durs}, ...
0071  'bf_ev',   bf_ev_idx, ...
0072  'bf_ep',   bf_ep_idx, ...
0073  'volterra',  0 ...
0074 );
0075 
0076 %
0077 %  Basis function structures
0078 %
0079 
0080 bf_ev(1) = struct( ...
0081   'ev_type', 1, ...
0082   'win_len', [], ...
0083   'order', [] ...
0084 );
0085 
0086 bf_ep(1) = struct( ...
0087   'ep_type', 4, ...
0088   'length', nscan_per_cond, ...
0089   'conv',  0, ...  
0090   'deriv', 0 ...
0091 );
0092 
0093

Generated on Wed 20-Sep-2023 04:00:50 by m2html © 2003