ECG: design of an electrocardiograph and comparison with a numerical ventricular