Can you provide an example of importing .erp file using script? I can do it with the GUI using right click->import EEG/MEG and then select the .erp file, but I could not find a way to do that using script, same with .set files.
I have tried in_fopen+in_fread, bst_process(‘LoadInputFile’), neither worked. I may have missed some input variables since I don’t know what is mandatory and what is optional.
I have done all my preprocessing in EEGLAB/ERPLAB and just want to use the source localization part of brainstorm.
Thanks,
HY