Hi,
I ran a home-made matlab analysis on some files sFiles that I get out from a Braintorm process, and after this analysis, I marked some of the files as bad trials using the SetTrialStatus function of process_detectbad. Now I would like to select the subset of sFiles that are not marked as bad. I considered using process_select_files_data, but this process does not take any input file, and I would need to start from sFiles preferably, to make sure I'm not including other irrelevant files. Is there a simple matlab code that could do what I need?
In short, I am looking for some code some_function that I could use as follow:
sFilesGood = some_function(sFiles);
The output sFilesGood would contain all entries of sFiles that are not marked as bad.
Any help with this would be greatly appreciated.