The relation between Scouts and brain grid

is it the location of the center of scout? am I right?

It should be OK.
If you are using a surface source model with constrained orientations, use preferably the Vertices field from the surface file.

but the dimension of these arrays aren't match! how can I do that?

The GridLoc field contains the 3D locations.
The Gain matrix defines 3 dipoles in orthogonal directions at each location, so it has 3x the size of GridLoc.
https://neuroimage.usc.edu/brainstorm/Tutorials/HeadModel#On_the_hard_drive

Simulating EEG signal from Leadfield+source signal is done in bst_simulation.m:

1 Like