R-DECO: An open-source Matlab based graphical user interface for the detection and correction of R-peaks 1.0.0

File: <base>/Common/Load_files/read_H5.m (309 bytes)
% Read .ecg file 
%
% Input:      
% file     - the file (name and path)
%
% Ouput:
% data     - ECG signal
% fs       - sampling frequency

function [data,fs]=read_H5(file)

% % Get the labels
% data=h5info(file,'/Stingray');
data=h5info(file);

[data,check]=loop_through_H5_structure(data);