Is my code is correct for wavelet packet decomposition of EEG signal taken by emotiv (Sampling freq-128hz)?

Hi friends...........
i am something confused between wpcoef and wprec.
i wrote a code to decompose the signal x by wavelet packet decomposition and reconstruction upto 5th level.
% wavelet packet decomposition upto 5th level by db4 %
wpt = wpdec(x,5,'db4'); %( T = wpdec(X,N,'wname'))
% wavelet reconstruction
C0 = wpcoef(wpt,[5 0]);
C1 = wpcoef(wpt,[5 1]);
C2 = wpcoef(wpt,[5 2]);
C3 = wpcoef(wpt,[5 3]);
C4 = wpcoef(wpt,[5 4]);
C5 = wpcoef(wpt,[5 5]);
C6 = wpcoef(wpt,[5 6]);
C7 = wpcoef(wpt,[5 7]);
C8 = wpcoef(wpt,[3 1]);
C9 = wpcoef(wpt,[3 2]);
% different frequency bands
Delta_x = C0;
Theta_x = C1;
Alpha_x = C2;
BetaL_x = [C3,C4,C5];
BetaH_x = [C6,C7];
Gamma_x = [C8,C9];
Are the Delta_x, Theta_x ,Alpha_x, BetaL_x, BetaH_x, Gamma_x the real reconstructed signal to use further for featute extraction or not?
how should i use here wprec?
please tell me as soon as possible?

Réponses (0)

Catégories

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by