ECE3820 Principles and Practice of Biomedical Engineering Laboratory Lab
Fall’11
Week6: Heart Rate Variability Lab.
1) Load the saved ECG signal into Matlab (one segment at a time).
2) Plot the signal. Label axes correctly. Check the graph template for the ECG sample frequency. To
develop the code, include ~ 6  8 beats. For the report, include 4 to 5 beats only. Check the time axis
units.
3) Differentiate the ECG using the
gradient
function. Use the appropriate time interval: dt is the
difference between two points on the xaxis (ie. dt =t(2)t(1)). Plot the derivative.
4) Create another array of zeros (array “b”) having length equal to that of the ECG array. Find where the
ECG derivative is greater than 40 (or some appropriate threshold) and assign those indices in array “b”
equal to one.
5) Compute the derivative of array “b” using the
diff
function.
6) Find indices where the derivative of array “b” is greater than 0.4 (or some appropriate threshold).
This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
This is the end of the preview.
Sign up
to
access the rest of the document.
 Fall '11
 Wang
 Cartesian Coordinate System, biomedical engineering laboratory, Practice of Biomedical Engineering Laboratory Lab, Engineering Laboratory Lab

Click to edit the document details