Professional Documents
Culture Documents
High Low
High Low
5:48 PM
for j= 1:120:length(flist);
z_t=[];
y_t=[];
if (j+120)>length(flist);
g=length(flist)-j;
else
g=120;
end
allpressure =[];
for l=j:j+g
prid = fopen ([dir '\' char(flist (l,:))]);
fname=char(flist(j,:));
[ts]=correct_time_stamp(fname);
pressure = fread(prid, inf, 'int16');
fclose(prid);
allpressure = [allpressure; pressure];
end
[C,L]=wavedec(allpressure,3,'db1') ;
A3=wrcoef('a',C,L,'db1',3);
y = resample(A3,200,fs);
[S,f,t]=spectrogram (y,w,Nlap,Nfft,200);
s = 10 * log(abs(S));
gggg=[];
for gg=1:length(t)
ggg=ts+t(gg);
year=0;
month=0;
day=0;
hour=floor(ggg/3600);
minute=floor(((ggg/3600)-hour)*60);
second=(((((ggg/3600)-hour)*60)-minute)*60);
xdate = datenum(year,month,day,hour,minute,second);
gggg=[gggg xdate];
end
c=.55*sqrt(2*log(512))*sqrt(512);