|
@@ -8,14 +8,14 @@ strMainPath = 'Human_Amygdala_MUA_sEEG_FearVideo'; % 'human_amygdala_mua_seeg_fe
|
|
strNIXLibraryPath = 'nix-mx_Win64_1.4.1'; % or 'nix_mx_macOS_1.4.2_Matlab2020a'
|
|
strNIXLibraryPath = 'nix-mx_Win64_1.4.1'; % or 'nix_mx_macOS_1.4.2_Matlab2020a'
|
|
|
|
|
|
%% Add necessary folders to the MATLAB path
|
|
%% Add necessary folders to the MATLAB path
|
|
-addpath([strMainPath filesep 'code_MATLAB' filesep])
|
|
|
|
|
|
+addpath([strMainPath filesep,'code_MATLAB',filesep])
|
|
addpath(genpath(strNIXLibraryPath))
|
|
addpath(genpath(strNIXLibraryPath))
|
|
|
|
|
|
warning('strMainPath should be the full path of the folder for the repository Human_Amygdala_MUA_sEEG_FearVideo (or human_amygdala_mua_seeg_fearvideo)')
|
|
warning('strMainPath should be the full path of the folder for the repository Human_Amygdala_MUA_sEEG_FearVideo (or human_amygdala_mua_seeg_fearvideo)')
|
|
warning('strNIXLibraryPath should be the full path of the NIX library ''nix-mx_Win64_1.4.1''')
|
|
warning('strNIXLibraryPath should be the full path of the NIX library ''nix-mx_Win64_1.4.1''')
|
|
|
|
|
|
%% NIX data files
|
|
%% NIX data files
|
|
-strNIXFileNames = dir([strMainPath filesep 'data_NIX' filesep '*.h5']);
|
|
|
|
|
|
+strNIXFileNames = dir([strMainPath,filesep,'data_NIX',filesep,'*.h5']);
|
|
strNIXFileNames = {strNIXFileNames.name}';
|
|
strNIXFileNames = {strNIXFileNames.name}';
|
|
|
|
|
|
assert(~isempty(strNIXFileNames),'strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
|
|
assert(~isempty(strNIXFileNames),'strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
|
|
@@ -24,7 +24,7 @@ assert(~isempty(strNIXFileNames),'strMainPath should be the full path of the fol
|
|
nFile = 1;
|
|
nFile = 1;
|
|
|
|
|
|
%% Open NIX file
|
|
%% Open NIX file
|
|
-strFilePath = [strMainPath filesep 'data_NIX' filesep strNIXFileNames{nFile}];
|
|
|
|
|
|
+strFilePath = [strMainPath,filesep,'data_NIX',filesep,strNIXFileNames{nFile}];
|
|
try
|
|
try
|
|
f = nix.File(strFilePath,nix.FileMode.ReadOnly);
|
|
f = nix.File(strFilePath,nix.FileMode.ReadOnly);
|
|
catch s
|
|
catch s
|