[QUOTE=Francois;4480]Ok, here is the procedure.
You need to update all the data files (=recordings) and channel files.
You can either load/save them using directly matlab commands, if you want to do with a script, or using the interface.
To modify a file using the GUI:
- right-click on the file > File > Export to Matlab > “fileMat”
- change one or more fields of the structure “fileMat” from your Matlab command window
- right-click on the same file > File > Import from Matlab > “fileMat”
In the channel file:
- Add a new channel in the “Channel” field:
> iChannel = length(fileMat.Channel) + 1;
> fileMat.Channel(iChannel).Comment = ‘new_channel_name’;
> fileMat.Channel(iChannel).Type = ‘new_channel_type’;
> fileMat.Channel(iChannel).Loc = [0;0;0];
> fileMat.Channel(iChannel).Weight = 1;
- If you have some SSP projectors defined, you need to add an empty row at the bottom of each fileMat.Projector(i).Components entry
In the data file:
- Add a row at the bottom of the F matrix, as a combination of channels #i1 and #i2
> fileMat.F(iChannel, = fileMat.F(i1) + fileMat.F(i2);
- Add an entry in the ChannelFlag field (the bad channels are tagged with a -1 in this vector, good channels are set to 1):
> fileMat.ChannelFlag(iChannel) = 1;
- you won’t be able to use those file to run the automatic blink detection, as it works only on continuous native files for now.
- this works only on imported data blocks, on the “Link to raw files”.
Oh, so this procedure wouldn’t help me with automatic blink detection. I better not mess with the source files then, since blink algorithms were the main reason I wanted to do it…
One workaround would be if I could do this in EEGlab and then import thee eeglab file into BST?