E_STSW_ica1_180108_prepare.sh 782 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # This script prepares tardis by compiling the necessary function in MATLAB.
  3. #ssh tardis # access tardis
  4. # check and choose matlab version
  5. #module avail matlab
  6. module load matlab/R2016b
  7. # compile functions
  8. matlab
  9. %% add fieldtrip toolbox
  10. addpath('/home/mpib/LNDG/StateSwitch/WIP_eeg/SA_preproc_study_YA/T_tools/fieldtrip-20170904/')
  11. ft_defaults()
  12. ft_compile_mex(true)
  13. %% go to analysis directory containing .m-file
  14. cd('/home/mpib/LNDG/StateSwitch/WIP_eeg/SA_preproc_study_YA/A_scripts/E_STSW_ica1_180108/')
  15. %% compile function and append dependencies
  16. mcc -m E_STSW_ica1_180108.m -a /home/mpib/LNDG/StateSwitch/WIP_eeg/SA_preproc_study_YA/T_tools/fnct_common -a /home/mpib/LNDG/StateSwitch/WIP_eeg/SA_preproc_study_YA/T_tools/eeglab14_1_1b/functions/sigprocfunc
  17. exit