eegData = randn(1, fs*10); 
[C,L] = wavedec(eegData,8,waveletFunction);
cA8 = appcoef(C,L,waveletFunction,8); 
D1 = wrcoef('d',C,L,waveletFunction,1);
D2 = wrcoef('d',C,L,waveletFunction,2);
D3 = wrcoef('d',C,L,waveletFunction,3);
D4 = wrcoef('d',C,L,waveletFunction,4);
D5 = wrcoef('d',C,L,waveletFunction,5); 
D6 = wrcoef('d',C,L,waveletFunction,6); 
D7 = wrcoef('d',C,L,waveletFunction,7); 
D8 = wrcoef('d',C,L,waveletFunction,8); 
A8 = wrcoef('a',C,L,waveletFunction,8); 
plot(1:1:length(Gamma),Gamma);title('GAMMA');
plot(1:1:length(Beta), Beta); title('BETA');
plot(1:1:length(Alpha),Alpha); title('ALPHA');
plot(1:1:length(Theta),Theta);title('THETA');
plot(1:1:length(Delta),Delta);title('DELTA');