From the assignment:
Use the
fft
routine from MATLAB to find out the beats per minute (BPM) in themyecg.csv
file. The sampling period for this signal is 0.00192 seconds and the signal was recorded with an attenuation of 10 on the digital scope (what do you have to do to put the signal with the proper amplitude)?
So basically I would have to get the BPM. I am able to successfully read the corresponding ECG and get the Fourier transform spectrum as well as the single sided amplitud spectrum of y(t)
, but I'm not sure how I can tie the info to get the BPM.
Here's an image of the signal:
That's my code so far:
xlabel
is Samples, in your code it's Frequency (Hz). Are these two related? (b) Do you, in general, don't know, how to obtain the BPM from the signal, or do you "just" don't know, how to do this in Matlab? If the latter, then please tell us, how to obtain the BPM from the signal in your own words. – HansHirsemyecg.csv
. – HansHirse