Dwt function with loop

6 次查看(过去 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