Unrecognized function or variable 'ExportDir'

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.

Please post the error and the contents of the variables sFiles, ReportFile, and ExportDir

1 Like

Thanks for a fast answer, I solved this, this was a bug in my code.