20.01.2015 Views

njit-etd2003-081 - New Jersey Institute of Technology

njit-etd2003-081 - New Jersey Institute of Technology

njit-etd2003-081 - New Jersey Institute of Technology

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

273<br />

Z=zeros([p,k]);<br />

for i=1:k<br />

g=x(n+l).*conj(x(n-l));<br />

g(2 *L)=0;<br />

y=w.*g; % Apply window to g or kernel.<br />

end<br />

Y=2/m*abs(fft(y,m)); % evidently because it's analytic<br />

% we only need 2/N<br />

Z(:,i)=Y(1 :p);<br />

n=n+skip;<br />

LFC=1:4;<br />

symvag=sum(Z(LFC,1:k));<br />

HFC=4:20;<br />

vagal=sum(Z(HFC,1:k));<br />

symtopar=symvag./vagal;<br />

% This section is for determining the instantaneous frequency<br />

% from the Wigner distribution.<br />

[r,c]=size(Z);<br />

for i=1:c;<br />

W=Z(:,i);<br />

Y=(1:r)';<br />

M=W. *Y;<br />

S=sum(M);<br />

F=sum(W);<br />

E(i)=S/F;<br />

end<br />

%Determines the size <strong>of</strong> the matrix created by wgjka4.m.<br />

%Repetition based on number <strong>of</strong> columns.<br />

%W is assigned the values <strong>of</strong> the column.<br />

%Y represents the frequencies.<br />

%Sum <strong>of</strong> the Wigner Distribution values.<br />

% Plotting commands<br />

J=[ 12.8+(1:k)*<br />

subplot(211);<br />

plot(A,dtrendata);<br />

title('IBI detrended');<br />

xlabel('time');<br />

ylabel('amplitude');<br />

subplot(212);<br />

plot(J,E);<br />

xlabel('time');

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

Saved successfully!

Ooh no, something went wrong!