topics - functions - index - search

compute_lfdmat.m

Computes leadfield matrix for given dipole locations (loc_mat(3,nr_dip))
and electrode locations (on unit sphere) (sens_mat(3, nr_sens))
A model flag can be set (see below)
For every dipole location, three (xyz) or two (dphi, dtheta) leadfield components are computed
=> lfd_mat(nr_sens, (2,3)*nr_dip)
For MEG, a centre of sphere (cntr_of_sphere(1,2,3)) can be specified, "loc_mat" should be
centred around (0,0,0) !!! For MEG, x and y coordinates are swapped (BTI) !
Unit of dipole strength: 1nAm (tested with ASA)
uses lf34capr() of rgpm (EEG) or sphere_meg() (MEG)