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

271 B.2.3.2 Frequency to Indices Conversions The equation for converting the frequency ranges to the corresponding indices used in the analysis program is shown below: Freq (Hz) Index Freq (Hz) _ Index Freq (Hz) Index 0.039 1 0.351 9 0.663 17 0.078 2 0.390 10 0.702 18 0.117 3 0.429 11 0.741 19 0.156 4 _ 0.468 12 0.780 20 0.195 5 _ 0.507 13 0.819 21 0.234 6 0.546 14 0.858 22 0.273 7 0.585 15 0.897 23 0.312 8 0.624 16 0.936 24 Frequency LF Range: HF Range: Indices 0.04-0.10 Hz 0.04-0.15 Hz 0.15-0.4 Hz 0.15-0.8 Hz 1:3 1:4 4:10 4:20 B.2.3.3 MATLAB Time-Frequency Analysis Matrix Row represents Frequency Column represents Time

272 B.2.3.4 Program to Generate SympathoVagal Activity Plots Using Wigner Distribution This .m MATLAB program calculates the vagal tone and sympatho-vagal ratio. It is an implementation of time-frequency analysis using the Wigner distribution. The MATLAB code for the program is given below: function symparl(rawdata,top) % SYMPAR1(iibi,gtitle) % iibi is the interpolated interbeat interval calculated % by pslwsu, either in Matlab or in S-plus. Gtitle is the % title of the output graphs. % Written by Sanjay Fernando. % last revision: 7/16/01 by Douglas Newandee (MATLAB 6.) rawdata=rawdata(:); order=5; freq=0.03; sample=20; nfreq=freq/sample; dtrendata=rawdata; [row,col]=size(dtrendata); I=1:row; I=I(:); A=(I/sample)/60; % This part is for testing Janse Kaiser Wigner calculation % algorithm with no window fs=1000; m=512; % The size of the fft we will be computing. skip=25; % Number of points we skip to get the next segment. p=60; % The number of freq vals we will be plotting k=fix((row-m)/skip); % the number of spectra we compute w=ones(size(1:m)); % window specification. Can be changed. w=w(:); x=hilbert(dtrendata); % Forms the analytic function of x L=m/2; l=-(L-1):(L-1); n=L;

271<br />

B.2.3.2 Frequency to Indices Conversions The equation for converting the<br />

frequency ranges to the corresponding indices used in the analysis program is shown<br />

below:<br />

Freq (Hz) Index Freq (Hz) _ Index Freq (Hz) Index<br />

0.039 1 0.351 9 0.663 17<br />

0.078 2 0.390 10 0.702 18<br />

0.117 3 0.429 11 0.741 19<br />

0.156 4 _ 0.468 12 0.780 20<br />

0.195 5 _ 0.507<br />

13 0.819 21<br />

0.234 6 0.546 14 0.858 22<br />

0.273 7 0.585 15 0.897 23<br />

0.312 8 0.624 16 0.936 24<br />

Frequency<br />

LF Range:<br />

HF Range:<br />

Indices<br />

0.04-0.10 Hz<br />

0.04-0.15 Hz<br />

0.15-0.4 Hz<br />

0.15-0.8 Hz<br />

1:3<br />

1:4<br />

4:10<br />

4:20<br />

B.2.3.3 MATLAB Time-Frequency Analysis Matrix<br />

Row represents Frequency<br />

Column represents Time

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

Saved successfully!

Ooh no, something went wrong!