Hi everyone,
I ran into a problem when doing source localization: the matrix dimensions did not match (I use dSPM and WMNE, individual MRIs are segmented via Freesurffer)... What does this mean?
Thanks so much for helping me

Hi everyone,
I ran into a problem when doing source localization: the matrix dimensions did not match (I use dSPM and WMNE, individual MRIs are segmented via Freesurffer)... What does this mean?
Thanks so much for helping me


New question When I try to average all epoches
The first error shows that something bad happened to your database: some files were moved or deleted outside of Brainstorm, or that you copied files between folders which had different numbers of channels in their channel files.
The second error shows that some data files were deleted after the links where created, or are on a drive that is not mounted anymore.
Try reloading your database, as suggested by the error message.
If it doesn't work, get back to your last backup.
If you didn't set up a backup, you'll probably have to reimport/recompute some of the data.
Hi Francois, thanks for your answer. Another question:
The use of ImageGridAmp/ImagingKernel is documented in the tutorials:
Hi Francois, thanks for your answer. One more question,
This is my code, but the output sFiles is empty when I run this code without any error reports, Could you please kindly tell me the reason?Secondlly,
according to your mention here, ImageGridAmp(sourcestime points) = ImagingKernel (sources channels)* recording time series(channels*time points), I can do this on my own. Could you please kindlly tell me whether this is right?It depends what you have in sFilesBand...
The error reports are displayed only if you request it:
bst_report('Open', 'Current')
I can do this on my own. Could you please kindlly tell me whether this is right?
Don't do this yourself. If for some reason you don't want to use the "Full results" option, you have function that would reconstruct the full matrix for you:
https://neuroimage.usc.edu/brainstorm/Tutorials/Scripting#Reference:_File_manipulation
I recommend you read this entire "Scripting" tutorial before trying to write your own scripts.