Plot 12-leads ECG signal in one figure
21 次查看(过去 30 天)
显示 更早的评论
Hello,
How to plot 12-leads ECG signal in one figure?
The ECG data are included in the structure:
% Create a structure to hold the ECG data
N = size(rawData,1)
ecgData = struct();
ecg = struct();
% Therefore
ecgData.leadI=rawData(:,2);
ecgData.leadII=rawData(:,3);
% The augmented vector leads and lead III are derived as
% III=II-I; aVR=-(I+II)/2; aVL=I-II/2; aVF=II-I/2
ecgData.leadIII=ecgData.leadII-ecgData.leadI;
ecgData.aVR=-(ecgData.leadI+ecgData.leadII)/2;
ecgData.aVL=ecgData.leadII/2;
ecgData.aVF=ecgData.leadII-ecgData.leadI/2;
ecgData.V1 = rawData(:,8);
ecgData.V2 = rawData(:,4);
ecgData.V3 = rawData(:,5);
ecgData.V4 = rawData(:,6);
ecgData.V5 = rawData(:,7);
ecgData.V6 = rawData(:,1);
0 个评论
回答(1 个)
Taylor
2024-11-13,15:29
1 个评论
Star Strider
2024-11-13,18:32
To use the commonly-accepted plot format for a 12-lead EKG —
EKG = rand(12, 30)
t = linspace(0, 3, 30);
figure
Leads = ["I" "II" "III" "aV_"+["R" "L" "F"] "V_"+(1:6)];
tiledlayout(3, 4, TileIndexing='columnmajor')
for k = 1:12
nexttile
plot(t, EKG(k,:))
grid
title(Leads(k))
end
.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ECG / EKG 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!