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.

267<br />

title(['Mesh & Contour <strong>of</strong> ',eval('filename'),' using ',eval('distribution'),' distribution']);<br />

subplot(2,l,2), contour(T,f,TFDs);<br />

xlabel('Time(sec)');<br />

ylabel('Frequency(Hz)');<br />

pause<br />

elseif FigType=='b';<br />

figure(1);<br />

mesh(T,f,TFDs);<br />

xlabel('Time(sec)');<br />

ylabel('Frequency(Hz)');<br />

zlabel('Magnitude');<br />

title(['Mesh <strong>of</strong> ',eval('filename'),' using ',eval('distribution'),' distribution']);<br />

pause<br />

elseif FigType=='c';<br />

figure(1);<br />

contour(T,f,TFDs);<br />

xlabel('Time(sec)');<br />

ylabel('Frequency(hertz)');<br />

title(['Contour <strong>of</strong> ',eval('filename'),' using ',eval('distribution'),' distribution']);<br />

pause<br />

elseif FigType=='d';<br />

end<br />

(Algorithm to calculate Median frequency)<br />

if Question_4=='y';<br />

slope=(fit(3)-fit(1))/(T(3)-T(1));<br />

Si = sprintf('slope is %5.2f,(fit(3)-fit(1))/(T(3)-T(1)));<br />

S2 = sprintf('Y_intercept is %5.1f,fit(2)-slope*T(2));<br />

figure(2);<br />

plot(T,fit,T,median_frequency,'*');<br />

title(['Median frequency <strong>of</strong>,",eval('filename),",eval('S1'),",eval('S2'),",'Hertzl);<br />

xlabel('Time(sec)');<br />

ylabel('Frequency(Hertz)');<br />

else<br />

end<br />

pause<br />

if Question_3=='y' & Question_2=='y';<br />

figure(3);<br />

subplot(3 , 1,1), plot(ref,rawdata);<br />

title(['Superimpose <strong>of</strong> rawdata & detrended & IF <strong>of</strong> ',eval('filename')]);<br />

xlabel('Time(sec)');<br />

ylabel('Amplitude');<br />

subplot(3,1,2),plot(ref,Signa);<br />

xlabel('Time(sec)');<br />

ylabel('Amplitude');

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

Saved successfully!

Ooh no, something went wrong!