I want to save report for every subject
At the end of the scripts I use
% Save and display report
ReportFile = bst_report('Save', sFiles);
bst_report('Open', ReportFile);
bst_report('Export', ReportFile, ExportDir);
I have defined path ExportDir at the beginning of the script but I am still getting this error.