How can i decompose my signal into five parts using daubechies wavelet(db4) ?
2 views (last 30 days)
Show older comments
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:
- fs = 512
- T = 1/fs;
- N =length(EEGsig); ls = size(EEGsig);
- tx =[0:length(EEGsig)-1]/fs;
- fx = fs*(0:N/2-1)/N;
- x= EEGsig;
- sd = 0.1;
- normal_noise = sd*randn(1, N);
- noisy_EEGsig = x + normal_noise;
- figure();
- subplot(4,1,1);
- grid on;
- plot(tx, x);
- xlabel('Time [s]');
- ylabel('Amplitude');
- title('Original signal');
- subplot(4,1,2);
- grid on;
- plot(tx,normal_noise);
- xlabel('Time [s]');
- ylabel('Amplitude');
- title('Noise');
- subplot(4,1,3);
- grid on;
- plot(tx, noisy_EEGsig);
- xlabel('Time [s]');
- ylabel('Amplitude');
- title('Original signal + Noise');
0 Comments
Answers (0)
See Also
Categories
Find more on Biomedical Signal Processing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!