Error in Computing Sources of an Average

Hello,

I was wondering if anyone had any ideas as to why I'm receiving the error message below. The error occurs when I right click on the "avg: deviant" file and select "compute sources [2016]" per the instructions for Tutorial 22.

So far, I've tried restarting Brainstorm, deleting and recreating the average files, and making sure that the low resolution cortex (cortex_15000V) has been selected as the default cortex surface under the anatomy tab. I've included a relevant picture.

Any ideas on what I should try next?
Thanks!

Error using diag
Requested 330142x330142 (812.1GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.

Error in bst_inverse_linear_2016 (line 854)

Error in process_inverse_2016>Compute (line 633)

Error in process_inverse_2016 (line 24)

Error in panel_protocols>TreeInverse (line 1198)

Error in panel_protocols (line 43)

Error in tree_callbacks>@(h,ev)panel_protocols('TreeInverse',bstNodes,1) (line 2

Another relevant image.

Hello,

You have computed your head model with the high-resolution cortex surface (330000 vertices), and then have changed the default surface. Delete the head model and compute a new one using the low-resolution surface.

Cheers,
Francois

That worked! Thanks so much!

Hi Francois

May I know where to set low resolution of head model?

Just change the selected cortex surface from the high-resolution one to the low-res one (~15000).
https://neuroimage.usc.edu/brainstorm/Tutorials/ExploreAnatomy#Default_surfaces

Then start again the computation of the head model.

May I know, is my situation same for the above problem :slight_smile:
Error: [process_ssmooth_surfstat] Sources > Spatial smoothing
** Line 117: *
** Requested 15002x183000 (20.5GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array size limit or preference panel for more information.
**
** Call stack:
** >in_bst.m at 117
** >bst_process.m>ProcessFilter at 378
** >bst_process.m>Run at 151
** >bst_process.m at 36
** >panel_process1.m>RunProcess at 141
** >panel_process1.m at 27
** >gui_brainstorm.m>CreateWindow/ProcessRun_Callback at 737
** >bst_call.m at 28
** >gui_brainstorm.m>@(h,ev)bst_call(@ProcessRun_Callback) at 277
**

You have estimated a source file which dimensions are 15002 sources x 183000 time samples.
The file was created correctly because it is kept in compact format for now (using ImagingKernel: https://neuroimage.usc.edu/brainstorm/Tutorials/SourceEstimation#On_the_hard_drive)

What you are trying to do here (smoothing) requires to reconstruct the full source matrix, which is impossible because you file is too large.

You need to process your file in shorter segments, or use less sources.

TQVM Francois. I will do. TQ