fernandoandreotti / fecgsyn

FECGSYN toolbox for ECG and fetal ECG simulation
http://www.fecgsyn.com/
GNU General Public License v3.0
80 stars 26 forks source link

Ground electrode #5

Closed fernandoandreotti closed 10 years ago

fernandoandreotti commented 10 years ago

I commented out the calculus using the ground electrode:

ground = repmat(mean(mixture),NB_ELEC,1);
mixture = mixture - ground;
mecg = mecg - ground;
fecg = cellfun(@(x) x - ground,fecg,'UniformOutput',0);
noise = cellfun(@(x) x - ground,noise,'UniformOutput',0);

A better solution then averaging the channels should be found. e.g. defining a grond electrode somewhere on the models back.

fernandoandreotti commented 10 years ago

Done, added input parameter which specifies the location of the reference electrode. By default it is on the back.