1234567891011121314151617181920212223242526272829303132 |
- %% Close all figures, clear variables and command window
- close all
- clear
- clc
- %% Directory of the repository and the NIX library
- strMainPath = 'Human_Amygdala_MUA_sEEG_FearVideo\';
- strNIXLibraryPath = 'nix-mx_Win64_1.4.1\';
- strFieldTripPath = 'fieldtrip-20200315\';
- %% Add necessary folders to the MATLAB path
- addpath([strMainPath,'\code_MATLAB\'])
- addpath(genpath(strNIXLibraryPath))
- addpath(strFieldTripPath)
- ft_defaults
- warning('strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
- warning('strNIXLibraryPath should be the full path of the NIX library ''nix-mx_Win64_1.4.1''')
- warning('strFieldTripPath should be the full path of the FieldTrip toolbox ''fieldtrip-2020xxxx''')
- %% NIX data files
- strNIXFileNames = dir([strMainPath,'\data_NIX\*.h5']);
- strNIXFileNames = {strNIXFileNames.name}';
- assert(~isempty(strNIXFileNames),'strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
- %% Figure 1
- nExampleNeuron = 1;
- fig1 = Figure_1([strMainPath,'\data_NIX\'],nExampleNeuron);
- %% Figure 2
- fig2 = Figure_2([strMainPath,'\data_NIX\']);
|