Home > vbmeg > functions > tool_box > meeg_open_code > make_current_meeg.m

make_current_meeg

PURPOSE ^

SYNOPSIS ^

function make_current_meeg

DESCRIPTION ^

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function make_current_meeg
0002 
0003 sub = '030';
0004 
0005 root = ['/home/cbi-data20/yusuke-f/Projects/VisualMotion/' sub '/'];
0006 
0007 save_dir = 'test/';
0008 
0009 day = 1;
0010 cond = 4;
0011 
0012 current_parm.tsubsmpl = [];
0013 current_parm.jactdir = []; % (relative path from currfile)
0014 current_parm.areafile = []; % .area.mat
0015 current_parm.area_key = [];
0016 
0017 current_parm.trial_average=1;
0018 
0019 current_parm.bayesfile = [save_dir '/day' num2str(day) '_' num2str(cond) '.bayes.mat'];
0020 
0021 current_parm.megfile{1} = ['MEG/data0' num2str(day) '/meg/epoch/i' sub '_' num2str(cond) '_Both.meg.mat'];
0022 current_parm.eegfile{1} = ['EEG/data0' num2str(day) '/eeg/epoch/i' sub '_' num2str(cond) '_Both.eeg.mat'];
0023 
0024 current_parm.currfile = [save_dir '/day' num2str(day) '_' num2str(cond) '.curr.mat'];
0025 
0026 a=vb_load_meg_data([root current_parm.megfile{1}]);
0027 current_parm.twin_meg = [1 size(a,2)];
0028 current_parm.Tperiod = size(a,2);
0029 
0030 vb_job_current_meeg(root, current_parm);
0031 
0032 %%if needed
0033 %current_parm.filterfile = [save_dir 'day' num2str(day) '_' num2str(cond) '.vbfilt.mat'];
0034 %vb_job_vbfilter_meeg(root, current_parm);
0035 
0036

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005