Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jramshur committed Sep 13, 2015
1 parent cc98eec commit 47b00b0
Show file tree
Hide file tree
Showing 37 changed files with 224,463 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#################
## Matlab
#################

*.m~
*.dll
*.mexa64
*.mexglx
*.mexmac
*.mexmaci
*.mexmaci64
*.ps
*.asv
*.a
doc/html/

#############
## Windows detritus
#############

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Mac crap
.DS_Store

#############
## Other Stuff
#############

*.zip
*.csv
ECG_Viewer/
Archive/
*.psd
609 changes: 609 additions & 0 deletions ECGViewer.prj

Large diffs are not rendered by default.

Binary file added ECG_Viewer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
674 changes: 674 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# ECG Viewer

## Desciption

ECG Viewer is a Matlab GUI for reviewing, processing, and annotating simple electrocardiogram (ECG) data files. ECG Viewer offers an annotation database, ECG filtering, beat detection using template matching, and inter-beat interval (IBI or RR) filtering.

## Wiki



## Contact Info

John T. Ramshur, PhD
[email protected]
![http://www.linkedin.com/in/johnramshur](http://www.linkedin.com/in/johnramshur)

Project was part of my Masters thesis while at:

University of Memphis
Department of Biomedical Engineering
Memphis, TN
Advisor: Amy Curry, PhD


## License
Binary file added annotations.accdb
Binary file not shown.
Binary file added annotations.mdb
Binary file not shown.
Binary file added avg.mexw32
Binary file not shown.
25 changes: 25 additions & 0 deletions convertData.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
function convertData(fileToRead1)
%convertData(FILETOREAD1)
% converts data from the specified file
% FILETOREAD1: file to read

% Import the file
rawData1 = importdata(fileToRead1);
a=rawData1{2}; %ecg data is in row 2

% Read formated data
d=textscan(a,'/%d'); % read formated data
d=double(d{:}); % convert cell to array

% compute Time data
sampleRate=500; % set sample rate for computing time values
timeData=(0:1/sampleRate:length(d)/sampleRate-1/sampleRate)';

ecgData=[timeData,d];
plot(timeData,d)

% Save data
fileToSave=[fileToRead1(1:end-3) 'mat'];s
save(fileToSave,'ecgData');

end
Binary file added crosscorr.mexw32
Binary file not shown.
Loading

0 comments on commit 47b00b0

Please sign in to comment.