Browse Source

'code_MATLAB/Main_Load_NIX_Data.m' ändern

Ece Boran 3 years ago
parent
commit
2df31b31e8
1 changed files with 3 additions and 3 deletions
  1. 3 3
      code_MATLAB/Main_Load_NIX_Data.m

+ 3 - 3
code_MATLAB/Main_Load_NIX_Data.m

@@ -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'
 
 %% Add necessary folders to the MATLAB path
-addpath([strMainPath filesep 'code_MATLAB' filesep])
+addpath([strMainPath filesep,'code_MATLAB',filesep])
 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('strNIXLibraryPath should be the full path of the NIX library ''nix-mx_Win64_1.4.1''')
 
 %% NIX data files
-strNIXFileNames = dir([strMainPath filesep 'data_NIX' filesep '*.h5']);
+strNIXFileNames = dir([strMainPath,filesep,'data_NIX',filesep,'*.h5']);
 strNIXFileNames = {strNIXFileNames.name}';
 
 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;
 
 %% Open NIX file
-strFilePath = [strMainPath filesep 'data_NIX' filesep strNIXFileNames{nFile}];
+strFilePath = [strMainPath,filesep,'data_NIX',filesep,strNIXFileNames{nFile}];
 try
     f = nix.File(strFilePath,nix.FileMode.ReadOnly);
 catch s