MATLAB code help!!! could someone help me with this, Im trying to merge two ECG signal into one signal, both sampling ra

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

MATLAB code help!!! could someone help me with this, Im trying to merge two ECG signal into one signal, both sampling ra

Post by answerhappygod »

MATLAB code help!!!
Matlab Code Help Could Someone Help Me With This Im Trying To Merge Two Ecg Signal Into One Signal Both Sampling Ra 1
Matlab Code Help Could Someone Help Me With This Im Trying To Merge Two Ecg Signal Into One Signal Both Sampling Ra 1 (34.89 KiB) Viewed 27 times
could someone help me with this, Im trying to merge two ECG
signal into one signal, both sampling rate 128HZ. as you can see in
pic 3 (red circle) the point when the 2 signal were merge there is
something not correct. could someone help me with this (pic1 is my
code)? appreciated.
try13.m x ECG_Explorer.m ismember.m 1 clear all 2 close all 3 4 dataaf-load ("AF2.mat"); % AF signal xaf=dataaf.val(1,:); 5 6 xaf-detrend (xaf)'; 7 8 datan=load("norma 12.mat"); % Normal xn-datan.val(1,:); 9 xn-detrend (xn)'; %xnr=resample(xn, 250,128); % resample raw signal xc=[xn;xaf]; Fs = 128; t = (0:length(xc)-1)/Fs; %time value of any sample = [sample no./Fs] plot(t, xc) xlabel('Time [s]') %hold on pause SEARCHGANGE 10 11 12 13 14 15 16 17 18 19 Command Window + |||| I
Figure 1 File Edit View Insert Tools Desktop Window Help D803 8°C Clear 800 600- 400 200 0 -200 -400 -600 -800 0 2000 4000 H 6000 8000 Time [s] a 10000 -1 12000 14000 ENG US 16000 D 0 6:01 PM 25/05/2022 >
Figure 1 File Edit View Insert Tools Desktop Window Help DIE 8°C Clear 500- 400 300- 200 100 -100 -200- 7400 I 7500 7600 H 7700 7800 Time [s] 7900 a O 8000 8100 SABOQQN 8300 8200 ENG US 4 D 6:02 PM 25/05/2022 >
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply