• 大小: 2.86MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-28
  • 语言: Matlab
  • 标签: matlab  ECG  EKG  

资源简介

他是一个Matlab GUI 界面用于查看,处理和注释心电图数据文件,ECG Viewer提供注释数据库,ECG滤波,使用模板匹配和RR间期进行心跳检测。

资源截图

代码片段和文件信息

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (C) 2010 John T. Ramshur jramshur@gmail.com
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as
% published by
% the Free Software Foundation either version 3 of the License or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program.  If not see .
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function ecgViewer()
% ecgViewer: Creates a GUI to preview ecg filter ecg detect beats and
% filter ibi. It also alows the user to export ecg and ibi in several
% formats.
%
% Version: 1.2.2 - 10/21/10
%
% NOTES: 1. To take advantage of multi core/proc processing Matlab must run
%           matlabpool command. When loading the GUI ask if you want to use
%           multiple cores/processors.
%        2. dblclick on ecg plot to add annotion right click or ctrl 
%           click to mark file as completed
%        3. Before using the database feature the first time you must
%           create a datasourse in your Windows environment. See
%           http://matlab.izmiran.ru/help/toolbox/database/instal12.html#18933.
%           This is only done once.
%        4. dblclick on list of annotations to get details of that
%           annotation.
%        5. Use the up and down keyboard arrow keys to move to
%           the next(up) and previous (down) outlier. Use left and right to
%           move one ECG window back and forward. Note...you must first
%           click on a blank area in the ECG plot for these functions
%           to work.

%%  Initialize Variables
    
    %global variables
    %   sldStep: increment that slider moves when clicked (samples)
    %   dx: number of ecg samples in plot window (samples)
    %   fileList: (todo)   
    %   ecg1: unfilterd original ecg. I keep it in memory so i don‘t have
    %       to reload it if user decideds to not use ecg filters after already
    %       applying a filter.
    %   ecgf: filterd ecg
    %   path1: path to .mat files
    %   x: array containing x/time values of ecg (seconds)
    %   rate: ecg sample rate (samples/second)
    %   nx: number of total ecg samples (samples)
    %   indexR: index locations of beats (samples)
    %   ibi: 2 dim array of inter-beat intervals
    %   (secondssamples)
    %   h: structure containing handles to all gui controls
    %   art: array containg a logical array of ibi outliers
    %   flagReady: boolean flag that lets other fxns know if at least one
    %       ecg file has been previewed. 
    %   Ann: matrix of

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件      245760  2010-08-04 16:19  annotations.mdb
     文件        6144  2008-10-10 22:26  avg.mexw32
     文件        6656  2008-10-10 22:28  crosscorr.mexw32
     文件       91979  2010-10-21 14:27  ecgViewer.m
     文件        1900  2010-08-04 16:57  fastsmooth.m
     文件       35147  2010-08-04 00:53  gpl.txt
     文件        1471  2009-03-25 17:22  leslie_IBIfilt.m
     文件        5768  2010-08-04 16:59  locateOutliers.m
     文件          67  2010-08-04 16:38  main.m
     文件        2255  2010-08-04 16:58  makeTemplate.m
     文件        7714  2010-10-14 15:43  matchTemplate.m
     文件        3097  2010-08-04 16:59  peakDetect.m
     文件        3084  2010-09-13 18:40  readme.txt
     文件        1747  2010-10-14 16:12  update_log.txt
     文件      926614  2010-10-14 16:07  User_Manual.pdf
     文件     1324755  2010-08-04 22:48  sampleData\sample_ecg.mat
     文件     2604082  2010-10-12 14:48  sampleData\sample_ecg.txt
     文件        2134  2010-08-04 17:25  templates\sample_template.mat

评论

共有 条评论