Simulation of transmembrane potentials and corresponding electrograms
This function simulates transmembrane potentials (for a 90 x 90 grid) and corresponding electrograms (for a 5 x 5 electrode grid) for a piece of human atrial tissue, based on the monodomain and Courtemanche  models and a model for electrograms . This function was programmed to generate the simulation data as used in . When using this function, please refer to the references below for completeness.
 M. Courtemanche, R. J. Ramirez, and S. Nattel, "Ionic mechanisms
underlying human atrial action potential properties: insights from a
mathematical model," Amer. J. Physiol. Heart Circ. Physiol., vol. 275,
no. 1, pp. H301 - H321, Jul. 1998.
 N. Virag et al., "Study of atrial arrhythmias in a computer model no. 3, pp. 754 - 763, Sep. 2002.
 J. W. de Vries, M. Sun, N. M. S. de Groot, and R. C. Hendriks,
"Estimation of cardiac fibre direction based on activation maps," in
2023 IEEE Int. Conf. Acoust. Speech Signal Process., Rhodes, Greece,
- Estimation of Cardiac Fibre Direction Based on Activation Maps
J. W. de Vries; M. Sun; N. M. S. de Groot; R. C. Hendriks;
In IEEE International Conference on Acoustics, Speech, and Signal Processing (ICASSP),