12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- %% ck_Run
- % use this file to run subfunctions
- clc;
- homefld = pwd;
- cd ../../
- SHARED_ROOT_FLD = pwd;
- cd(homefld)
- addpath(genpath(fullfile(SHARED_ROOT_FLD,'Analysis_code')));
- %% SETTINGS ###############################################################
- Subj = {'M04','M03'};
- Sess = {'20181004_B1','20180807_B2'};
- for s=2:length(Subj)
- subj = Subj{s};
- sess = Sess{s};
-
- % MORE SETTINGS #######################################################
- Do.Load.Any = true;
- Do.Load.DigChan = true; % new files
- Do.Load.MUA = true; % new files
- Do.Load.LFP = true; % new files
- Do.Load.Behavior = true; % new files
- Do.Load.ProcMUA = false;
- Do.Load.ProcLFP = false;
- Do.Load.ProcBEH = false;
- Do.SyncTimes = true;
- Do.SaveUncut = true;
- Do.SaveMUA_perArray = true;
- Do.SaveLFP_perArray = true;
- %% load data ==========================================================
- %This preprocess the data so it can be used in fits.
- if Do.Load.Any
- ck_Load(subj, sess, Do)
- end
- end
- rmpath(genpath(fullfile(SHARED_ROOT_FLD,'Analysis_code')));
|