Main_Plot_Figures.m 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. %% Close all figures, clear variables and command window
  2. close all
  3. clear
  4. clc
  5. %% Directory of the repository and the NIX library
  6. strMainPath = 'Human_Amygdala_MUA_sEEG_FearVideo\';
  7. strNIXLibraryPath = 'nix-mx_Win64_1.4.1\';
  8. strFieldTripPath = 'fieldtrip-20200315\';
  9. %% Add necessary folders to the MATLAB path
  10. addpath([strMainPath,'\code_MATLAB\'])
  11. addpath(genpath(strNIXLibraryPath))
  12. addpath(strFieldTripPath)
  13. ft_defaults
  14. warning('strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
  15. warning('strNIXLibraryPath should be the full path of the NIX library ''nix-mx_Win64_1.4.1''')
  16. warning('strFieldTripPath should be the full path of the FieldTrip toolbox ''fieldtrip-2020xxxx''')
  17. %% NIX data files
  18. strNIXFileNames = dir([strMainPath,'\data_NIX\*.h5']);
  19. strNIXFileNames = {strNIXFileNames.name}';
  20. assert(~isempty(strNIXFileNames),'strMainPath should be the full path of the folder Human_Amygdala_MUA_sEEG_FearVideo')
  21. %% Figure 1
  22. nExampleNeuron = 1;
  23. fig1 = Figure_1([strMainPath,'\data_NIX\'],nExampleNeuron);
  24. %% Figure 2
  25. fig2 = Figure_2([strMainPath,'\data_NIX\']);