In: Computer Science
matlab code to graph an ecg
`Hey,
Note: Brother if you have any queries related the answer please do comment. I would be very happy to resolve all your queries.
Pleasee note to run below program you need to be online since cg data is takeen from the url.
clc
clear all
close all
format long
file =
'http://people.ucalgary.ca/~ranga/enel563/SIGNAL_DATA_FILES/ecgpvc.dat';
ecg = str2num(urlread(file));
time = (1:numel(ecg))/200;
plot(time,ecg,'b')
axis ([15 20 1500 2800])
title('Task DRaw ECG Data plotting ')
xlabel('time')
ylabel('amplitude')
grid on
Kindly revert for any queries
Thanks.