Hi,
I computed my data ICA components using brainstorm. Now, I want to have time series of components in Matlab.
How can I do that? I think I should save active projectors by using option in “Select active projectors”, then apply pinv(Projector.Components)*data. Is it a correct manner?
You build the projectors with function process_ssp2(‘BuildProjector’, ListProj, 1):
ListProj: Get it from the channel file (field .Projector).
This creates a Projector matrix, that you can then simply multiply with the data. Example:
Alternatively, you can display the IC time series from the window “Select active projectors”, then export the displayed time series (unselect the [DC] button in the Record tab): right-click on the figure > Snapshot > Export to Matlab.
Thanks so much dear Francois, your suggestions have always been useful for me. But, when I process the step 6, the error "No sensors are selected " occurred. My data is recorded with 256 channel and my components are 251.
About your error: you must configure your subjects with the option “Default channel : No, Use one channel file per acquisition run”. Then the process “Apply montage” should create a new channel file, with a new type of sensors “MONTAGE” (right-click on the channel file > Edit, to verify the type of the channels). You can change it if you want.
When computing the PSD, you must indicate the type of the channels you want to process (“MONTAGE”), or leave the option “Sensor names or types” empty