njit-etd2003-081 - New Jersey Institute of Technology

njit-etd2003-081 - New Jersey Institute of Technology njit-etd2003-081 - New Jersey Institute of Technology

archives.njit.edu
from archives.njit.edu More from this publisher
20.01.2015 Views

269 B.2.3 Program to Generate Activity Plots Using Wigner Distribution This program is a MATLAB m-file. Upon starting MATLAB, type whitebg for a white graphic background. 1. The data needed is the interpolated inter-beat interval ASCII file. In LabVIEW, after you have created the heart rate or blood pressure IIBI file, you must make sure it is an ASCII file with channel data in column format with the extension (filename.asc). In order to load it into MATLAB. Type: load Agu1hrbp.asc; Note: Agu109hrbp.asc is the filename. If you now type whos, the file should show up as the variable Agu1hrbp. 2. Run the program: symparl(data,'graphtitle') Here, data is Agu1hrbp, and graphtitle is the title you choose. It must, however, be in single quotes as shown. 3. The program will ask for frequency index ranges for the calculation of the area under the high and low frequency peaks: For the low frequency (LF) range: .05-.15 Hz use 1:4 (rest, pace 12 & 18, exercise, recovery) .05-.10 Hz use 1:3 (pace 8) For the high frequency (HF) range: .15-.4 Hz use 4:10 (rest, pace 12 & 18) .10-.4 Hz use 3:10 (pace 8) .15-.8 Hz use 4:20 (exercise and recovery)

270 4. The program creates five output graphs. If you want to print them you can do so manually. 5. On three graphs you will see a cross hair. Place it where you want your graph title to go and click the left mouse button. B.2.3.1 Some Important Equations This section explains some of the terms and their relations in the various MATLAB programs: #skip * #time slices < (or =) #data points in the file LP Butterworth filter used: Cutoff frequency: 0.03 Hz LF Range: 0.05-0.15 Hz HF Range: 0.15-0.4 Hz FFT: 512 points #skip: 25 pt 1St time slice: at 256 pt 2nd time slice: at 256 + 25 = 281 pt 3 rd time slice: at 281 + 25 = 306 pt

269<br />

B.2.3 Program to Generate Activity Plots Using Wigner Distribution<br />

This program is a MATLAB m-file. Upon starting MATLAB, type whitebg for a white<br />

graphic background.<br />

1. The data needed is the interpolated inter-beat interval ASCII file. In LabVIEW,<br />

after you have created the heart rate or blood pressure IIBI file, you must make sure it is<br />

an ASCII file with channel data in column format with the extension (filename.asc). In<br />

order to load it into MATLAB. Type:<br />

load Agu1hrbp.asc; Note: Agu109hrbp.asc is the filename.<br />

If you now type whos, the file should show up as the variable Agu1hrbp.<br />

2. Run the program:<br />

symparl(data,'graphtitle')<br />

Here, data is Agu1hrbp, and graphtitle is the title you choose. It must, however,<br />

be in single quotes as shown.<br />

3. The program will ask for frequency index ranges for the calculation <strong>of</strong> the area<br />

under the high and low frequency peaks:<br />

For the low frequency (LF) range:<br />

.05-.15 Hz use 1:4 (rest, pace 12 & 18, exercise, recovery)<br />

.05-.10 Hz use 1:3 (pace 8)<br />

For the high frequency (HF) range:<br />

.15-.4 Hz use 4:10 (rest, pace 12 & 18)<br />

.10-.4 Hz use 3:10 (pace 8)<br />

.15-.8 Hz use 4:20 (exercise and recovery)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!