Dwt function with loop

조회 수: 7 (최근 30일)
vikram
vikram 2016년 2월 9일
HI Every one , i dont know coding dat much so pls help me , i have Excel file with (4097*100)=(rows*columns) now i need to apply DWT discrete wavelet function on each column [A,B,C,.....100] which have 4097 values . so i get their coefficents like D1 D2 D3 D4 A4 for level 4 decomposition now i need to calculate their Statistics like [mean,std,max,min] and write their values into new Excel in columns respectively so i get (20*100) matrix.pls explain the loop with this function the following code is my function .
% DWT db2 level's 4 %x= input with (4097*1) [C,L] = wavedec(x,4,'db2'); [cD1,cD2,cD3,cD4] = detcoef(C,L,[1,2,3,4]); cA4 = appcoef(C,L,'db2',4);
% Statistical features
Fv = [ mean(cD1);mean(cD2);mean(cD3);mean(cD4);mean(cA4); max(cD1);max(cD2);max(cD3);max(cD4);max(cA4); min(cD1);min(cD2);min(cD3);min(cD4);min(cA4); std(cD1);std(cD2);std(cD3);std(cD4);std(cA4)];
% Write Fv DATA in Xlsx file
xlswrite('Fv.xlsx',Fv);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by