FMEG FORWARD Modeling

Hello Francois,

Thank you for your reply,

As I understand that the function Channel = ctf_add_coil_defs(Channel, systemName), takes the channel file as an input, so Channel(k).Orient(:,1) is corresponding to info in the channel file,
In the function they call the coil_def.dat as:

coil_def_file = which('coil_def.dat');
templates = mne_load_coil_def(coil_def_file);

Then if we look at it:

t=templates(8).coildefs

t =

29.7619 0.0084 0.0067 0.0003 0 0 1.0000
29.7619 0.0084 -0.0067 0.0003 0 0 1.0000
-29.7619 -0.0084 0.0067 0.0003 0 0 1.0000
-29.7619 -0.0084 -0.0067 0.0003 0 0 1.0000

But I do not understand where/how they use the 0 0 1 here to link it with the orientation of the channel file? in the other word what is the equation (or link) between 0 0 1 and 0.1763 0.9843 -0.0130 (the orientation of the channel 1 in the channel file for instance)? when I understand this, then I can simply edit the channel file as you recommended

Yes we want to use one location (.Loc), one orientation (.Orient) for each, as I discussed with Etienne Labyt. I will follow your recommendation regarding the naming of the OPM sensors.

Best regards
Saeed