Data Chromatix 1.0.0

File: <base>/example1.m (519 bytes)
% Example 1: Fixed-length memory window
% Please note that the wfdb library must be installed
% and in your Matlab path for the example to work
clc
close all
clear all
wfdb2mat('ctu-uhb-ctgdb/1170')
load 1170m
data=val(1,:)';
data=data/100;
data(data<30 | data>240)=[];
lambda=10;
fs=4;
T=600.0;      % sec time interval to display (10min)
nbins=100;
ncolors=64;
colorwin=100;
Tshift=60.0; % sec time shift
DataChromatix(data, 'Time (mm:ss)', 'FHR (bpm)',T, Tshift, 1000, colorwin, nbins, ncolors, 10, fs, 'video1', 1)