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

2 次查看(过去 30 天)
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');

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Biomedical Signal Processing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by