资源简介

UI化的心电HRV分析工具,基于MATLAB,可直接使用。 包括时域分析、频域分析、时频分析和非线性分析。

资源截图

代码片段和文件信息

function batchHRV(opt)
%batchHRV: function that calculates hrv on all ibi files in selected
%           directory
%
%Inputs:
%
%Outputs:
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright (C) 2010 John T. Ramshur jramshur@gmail.com

% This file is part of HRVAS
%
% HRVAS 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.

% HRVAS 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 Foobar.  If not see .
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%check inputs
if (nargin < 1) || ~isstruct(opt)
    flagNoGui=true;
else
    flagNoGui=false;
end

if ~flagNoGui
    bcolor=[0.702 0.7216 0.8235]; %background color

    h.batchFigure=figure(‘Name‘‘Batch Prcccess HRV‘ ...
        ‘Position‘[20 50 500 500 ]...
        ‘Toolbar‘‘none‘‘Menubar‘‘none‘);
    
    h.panel = uipanel(‘Parent‘h.batchFigure...
        ‘Units‘ ‘normalized‘ ‘Position‘[0 0 1 1]);   
    h.lbl=uicontrol(h.panel‘style‘‘text‘ ...
        ‘String‘‘Choose Directory to perform batch HRV analysis:‘...
        ‘HorizontalAlignment‘‘left‘...
        ‘FontWeight‘ ‘bold‘ ‘FontSize‘12...
        ‘Units‘ ‘normalized‘ ‘Position‘[.02 .9 .8 .08]);
    h.lblDir=uicontrol(h.panel‘style‘‘text‘ ‘String‘‘‘...
        ‘Units‘ ‘normalized‘ ‘Position‘[.02 .85 .8 .05]...
        ‘BackgroundColor‘‘white‘...
        ‘HorizontalAlignment‘‘left‘);
    h.btnChooseDir=uicontrol(h.panel‘style‘‘pushbutton‘ ‘String‘‘Choose Dir‘...
        ‘Units‘ ‘normalized‘ ‘Position‘[.83 .85 .14 .05]...
        ‘Callback‘ @btnChooseDir_Callback);
    
    h.list = uicontrol(h.panel‘style‘‘list‘...
        ‘Units‘ ‘normalized‘‘Position‘[.02 .34 .8 .5]‘max‘3‘min‘1...
        ‘Callback‘@list_Callback);
    h.lblProcessing=uicontrol(h.panel‘style‘‘edit‘ ‘String‘‘!!! PROCESSING !!!‘...
        ‘Units‘ ‘normalized‘ ‘Position‘[.15 .55 .5 .1]...
        ‘BackgroundColor‘‘white‘ ‘FontSize‘12 ‘ForegroundColor‘ ‘red‘...
        ‘HorizontalAlignment‘‘center‘‘visible‘‘off‘);
    h.lblType = uicontrol(h.panel‘style‘‘text‘...
                ‘String‘‘File Type:‘‘HorizontalAlignment‘‘right‘...
                ‘Units‘ ‘normalized‘‘Position‘[.45 .25 .2 .05]...
                ‘Callback‘@updateList);
    h.popupType = uicontrol(h.panel‘style‘‘popupmenu‘...
                ‘String‘{‘Any (*.*)‘‘ibi (*.ibi)‘‘text (*.txt)‘}...
             

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     300893  2015-11-16 09:55  HRVAS_v1.0.0\ahi40.1_7616_ecg1.mat

     文件      69120  2015-11-16 10:02  HRVAS_v1.0.0\ahi40.1_7616_ecg1.txt

     文件      14975  2015-11-02 11:24  HRVAS_v1.0.0\batchHRV.m

     文件       2195  2015-11-02 11:24  HRVAS_v1.0.0\ellipsedraw.m

     文件      10995  2015-11-02 11:24  HRVAS_v1.0.0\exportHRV.m

     文件      10924  2015-11-02 11:24  HRVAS_v1.0.0\freqDomainHRV.m

     文件      35147  2015-11-02 11:24  HRVAS_v1.0.0\gpl.txt

     文件     129862  2015-11-02 11:24  HRVAS_v1.0.0\HRVAS.m

     文件       1928  2015-11-02 11:24  HRVAS_v1.0.0\hrvas_icon.png

     文件       5750  2015-11-02 11:24  HRVAS_v1.0.0\locateOutliers.m

     文件       1959  2015-11-02 11:24  HRVAS_v1.0.0\lomb2.m

     文件       2625  2015-11-02 11:24  HRVAS_v1.0.0\lying.txt

     文件         45  2015-11-02 11:24  HRVAS_v1.0.0\main.m

     文件       6475  2015-11-02 11:24  HRVAS_v1.0.0\nonlinearHRV.m

     文件          0  2015-11-16 15:49  HRVAS_v1.0.0\OGLdpf.log

     文件       1748  2015-11-02 11:24  HRVAS_v1.0.0\poincareHRV.m

     文件       7736  2015-11-02 11:24  HRVAS_v1.0.0\preProcessIBI.m

     文件       1717  2015-11-02 11:24  HRVAS_v1.0.0\readme.txt

     文件       3958  2015-11-02 11:24  HRVAS_v1.0.0\replaceOutliers.m

     文件       4809  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\103.ibi

     文件       1770  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\103.txt

     文件      16382  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\ecgsyn.ibi

     文件      13768  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\example.ibi

     文件      24040  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\ibi_export.ibi

     文件       4206  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\kubios_sampledata.txt

     文件       9415  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\readme.txt

     文件      69036  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\real.ibi

     文件     319789  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\real_rr.txt

     文件      20687  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\RTFcon10_wk5.ibi

     文件       6906  2015-11-02 11:24  HRVAS_v1.0.0\sampleData\sample2.ibi

............此处省略16个文件信息

评论

共有 条评论