sampling an ecg signal

12 views (last 30 days)
dhanshri kulkarni
dhanshri kulkarni on 26 Oct 2015
Answered: Hari on 28 May 2025 at 7:55
I have signal with 100 pulses per minute, and each pulse has 100 samples.such that each sample is transmitted per seconds.what should be the sampling rate and frequency of the incoming ecg signal.

Answers (1)

Hari
Hari on 28 May 2025 at 7:55
Hi Dhanshri,
I understand that you have an ECG signal with 100 pulses per minute, and each pulse consists of 100 samples. You want to determine the sampling rate and frequency of the incoming ECG signal.
In order to determine the sampling rate and frequency of the ECG signal, you can follow the below steps:
Calculate the Pulse Duration:
Determine the duration of one pulse in seconds. Since there are 100 pulses per minute, each pulse lasts 60/100 seconds.
pulseDuration = 60 / 100; % Duration of one pulse in seconds
Determine the Sampling Rate:
Since each pulse has 100 samples, calculate the sampling rate in samples per second (Hz).
samplingRate = 100 / pulseDuration; % Sampling rate in Hz
Verify the Frequency of the ECG Signal:
The frequency of the ECG signal in terms of pulses per second is simply the reciprocal of the pulse duration.
signalFrequency = 1 / pulseDuration; % Frequency in Hz
Example Calculation:
For 100 pulses per minute and 100 samples per pulse, the sampling rate is 100 Hz, and the frequency of the ECG signal is approximately 1.67 Hz.
Output the Results:
Display the calculated sampling rate and frequency.
fprintf('Sampling Rate: %.2f Hz\n', samplingRate);
fprintf('Frequency of ECG Signal: %.2f Hz\n', signalFrequency);
Refer to the documentation of “fprintf” function to know more about its usage:
Hope this helps!

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!