PLOT OF ECG SIGNAL (mv)

21 views (last 30 days)
ko 00
ko 00 on 19 Nov 2016
Answered: Ankit Mondal on 20 Nov 2016
Hello everyone, I try to plot the ECG signal , it's amplitude is shown in power of 10 . I do not want this . so i convert it by using A/D converter. but it only show power of 10 . How can i do? please kindly help me. i am the beginner of matlab user , so kindly explain me step by step procedure.
f=load ('kk.dat'); %load the variable
fs=1000; %select sampling frequncy
t=f(:,1);% time is in column 1 of the ECG data
k1=f(:,2);%chosing channel 2
%A/D conversion where the gain is 500 and 12 bit resoution
E=4.096-(-4.096)/(2.^12-1)*1000;
ECG = (k1-2^11) * (E /500); % 12 bit A/D converter
L=length(ECG);%total number of sample in ECG
figure(1);
subplot(2,1,1)
plot(t,k1);
title('Plot of original ECG signal in millivolts against milliseconds');
xlabel('Time (msec)')
ylabel('Amplitude (mV)')

Answers (1)

Ankit Mondal
Ankit Mondal on 20 Nov 2016
I guess by "power of 10" you mean the 10^4 and 10^6 that appear in the x and y axes respectively. If that is so, then you could write plot(t,k1/10e6) and have ylabel('Amplitude (kV)'). You could do a similar thing for the time axis.

Tags

Community Treasure Hunt

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

Start Hunting!