Activate one dipole

Thank you very much Dr. Arnd and Dr Francois for this idea
every script works in my computer except the last one(surface sensitivity2) it gives the below error:

Surface_sensitivity2
Error using *
Incorrect dimensions for matrix multiplication. Check that the number of columns in the first matrix matches the number of rows in
the second matrix. To perform elementwise multiplication, use '.*'.

Error in Surface_sensitivity2 (line 47)
F(iChannels,:slight_smile: = HM.Gain(iChannels,:slight_smile: * IMAGEGRIDAMP; %for every channel, calc the forward model of the simulated source with
amp=1 (leadfield*activation)

I am also interesting for the moving of the dipole toward the depth, it seems not exist in this new scripts, can you please add it also?

Thank you again Arnd!