License

The aim of the ECG simulator is to produce the typical ECG waveforms of different leads and as many arrhythmias as possible. My ECG simulator is a matlab based simulator and is able to produce normal lead II ECG waveform.
The use of a simulator has many advantages in the simulation of ECG waveforms. First one is saving of time and another one is removing the difficulties of taking real ECG signals with invasive and noninvasive methods. The ECG simulator enables us to analyze and study normal and abnormal ECG waveforms without actually using the ECG machine. One can simulate any given ECG waveform using the ECG simulator.
The way by which my simulator differs from other typical ECG simulators is that i have used the principle of fourier series. The calculations used and other necessary descriptions are included in the file attached.

Hi dear,
I downloaded your code and tried in matlab to understand some basics about the ECG, but in your code there are some variables that I did not realize why we use at there. Because your code is without comment. For example; what is li, t_pwave, and the formulas that you use for plotting. How did you get these formulas. Just from Fourier or you did some derivations. If you make clear this information to me, I will be glad to you.. Thank you..

hi I am doing ecg signal processing,I have tried to run the code for RRI(i) sequency and I got i.SO I please help me on how to transform it to freq domain and get from it:-
1)Spectrum density of RRI(i) using periodogram menthod
2)Spectrum density of RRI(i) using AR modeling menthod.

I have 2 computers, in the first I want enter ther values and show me the graphics, and in the second only I want this show me the graphics of the first.
In others words I want to pass values between the computers by parameters, how can I do this?

Hello, I am trying to use this simulation (qrs complex only) and trying to insert chaotic and random behavior into the signal. The chaotic and random behavior needs to be inputted in the time intervals between the pulses. I am trying to isolate and identify the time intervals in order insert the chaos and randomness. I have been having a lot of trouble identifying this region though. I have tried to use a for loop to create an array of indices where the ecg signal is equal to -0.5505 (which is where the time intervals are). I then tried to plot the ecg signal at those indices. After simulating the ecg signal qrs complex this is the code I used:
int=0:1:length(ecg);
c=100;

for i=1:length(ecg)
for j=1:length(ecg)
if(ecg(i)==-0.5505)
int(j)=i;
else
end
end
end
hold on
plot(ecg(int), 'r');

Using this I get int where each index has a value that's the same as the index. Therefore when I plot it I get the entire signal. I tried setting it to if (ecg(i)~=-.05505 and I got a line going through the entire signal at -.5505 but I only want the portions which aren't the qrs pusle. I have been working on this for a couple of days and I am very confused as to what I am doing wrong. Please offer any input.

ajay pawar, I would recommend using nonlinear spline filtering instead of standard linear filtering (hamming, rectangular). It's really useful for this kind of time-domain signals. We have used it extensivley while developing the TechPatient ecg simulator ( http://www.heinstruments.com ). Spline filtering can input a synthetic ecg waveform and output a realistic signal without compromising its final amplitude or timing.

how to enter the values ,its giving me an error when i give all default values?i dont know matlab that well ?can u help?i want to generate an ecg waveform ,with any value?i want to use filtering on it ,like rectangular ,hamming,hanning