% Preparation
0001 %% Preparation 0002 0003 % Copy and paste $vbmeg/tutorial including all the subdirectories and files 0004 % into $your_dir, where $vbmeg and $your_dir represent VBMEG's and your 0005 % directories, respectively 0006 0007 % Start MATLAB 2013b (This tutorial was developed using MATLAB 2013b) 0008 0009 % Change current direcotry to $your_dir/tutorial/program 0010 0011 % Initialize MATLAB 0012 close all 0013 clear all 0014 path(pathdef) % this is for takeda 0015 set(0,'DefaultFigureWindowStyle','docked')% this is for takeda 0016 0017 %% Starting a project 0018 0019 % Addting paths to necessary toolboxes 0020 addpath('/home/cbi/austin/vbmeg_newest');% VBMEG 0021 vbmeg 0022 addpath('/home/cbi-data20/common/software/external/spm/spm8');% SPM8 0023 0024 % Creating a project 0025 sub='s006';% s006 or s043 0026 p=creat_project_standard(sub);% Set paths and parameters for all the processes 0027 0028 %% EEG preprocessing 0029 close all 0030 import_eeg(p);% Convert BrainAmp file to MAT 0031 filter_eeg(p); 0032 make_trial_eeg(p); 0033 correct_baseline_eeg(p);% Prefix : br_ 0034 apply_ica_eeg(p); 0035 classify_ic_eeg(p); 0036 correct_classify_ic_eeg(p);% Need inputs 0037 show_ic_eeg(p); 0038 remove_noise_ic_eeg(p);% Prefix : ibr_ 0039 reject_channel_eeg(p);% Prefix : ribr_ 0040 common_average_eeg(p);% Prefix : cribr_ 0041 show_trial_average_eeg(p); 0042 0043 %% Source imaging from EEG data 0044 close all 0045 prepare_leadfield_eeg(p); 0046 estimate_source_current_eeg(p); 0047 show_source_current_eeg(p); 0048