How can i decompose my signal into five parts using daubechies wavelet(db4) ?

2 vues (au cours des 30 derniers jours)
Aparna Gupta
Aparna Gupta le 20 Juil 2017
I have an EEG signal which i had implemented in matlab and then added noise to it. Now i need to filter the noise out using wavelet transform. Can any one please help me ? This is my code:
  1. fs = 512
  2. T = 1/fs;
  3. N =length(EEGsig); ls = size(EEGsig);
  4. tx =[0:length(EEGsig)-1]/fs;
  5. fx = fs*(0:N/2-1)/N;
  6. x= EEGsig;
  7. sd = 0.1;
  8. normal_noise = sd*randn(1, N);
  9. noisy_EEGsig = x + normal_noise;
  10. figure();
  11. subplot(4,1,1);
  12. grid on;
  13. plot(tx, x);
  14. xlabel('Time [s]');
  15. ylabel('Amplitude');
  16. title('Original signal');
  17. subplot(4,1,2);
  18. grid on;
  19. plot(tx,normal_noise);
  20. xlabel('Time [s]');
  21. ylabel('Amplitude');
  22. title('Noise');
  23. subplot(4,1,3);
  24. grid on;
  25. plot(tx, noisy_EEGsig);
  26. xlabel('Time [s]');
  27. ylabel('Amplitude');
  28. title('Original signal + Noise');

Réponses (0)

Catégories

En savoir plus sur Biomedical Signal Processing dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by