Hello,
I have been getting the following error
Loading current protocol...
Index exceeds array bounds.
Error in node_create_db_studies>@(c)c{1} (line 149)
[tmp__, iStudiesSortedNonRaw] = sort(cellfun(@(c)c{1}, {ProtocolStudies.Study(isNonRaw).Condition},
'UniformOutput', 0));
Error in node_create_db_studies (line 149)
[tmp__, iStudiesSortedNonRaw] = sort(cellfun(@(c)c{1}, {ProtocolStudies.Study(isNonRaw).Condition},
'UniformOutput', 0));
Error in panel_protocols>UpdateTree (line 365)
case 'StudiesSubj', defNode = node_create_db_studies(nodeRoot, 'subject');
Error in panel_protocols (line 44)
eval(macro_method);
Error in db_load_protocol (line 89)
panel_protocols('UpdateTree');
Error in gui_brainstorm>SetCurrentProtocol (line 1020)
db_load_protocol(iProtocol);
Error in gui_brainstorm (line 33)
eval(macro_method);
Error in bst_startup (line 526)
gui_brainstorm('SetCurrentProtocol', GlobalData.DataBase.iProtocol);
Error in brainstorm (line 154)
bst_startup(BrainstormHomeDir, 1, BrainstormDbDir);
This I believe primarily happened because I copied and pasted brainstormstudy.mat file in a subject's data folder. Once I recognised this error I deleted the file. But when I reopen brainstorm this error still pops up and also the ProtocolStudies.Study struct and it's fields still read that file although it is has been permanently deleted from my computer.
Please help with this issue.
Thank you for your time.