Filtering Gaussian noise with Matlab

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 replies · 11K views
guru
Messages
38
Reaction score
0
I’m generating a 1 kHz square wave and adding Guassian noise to obtain a SNR of 0 dB (using Matlab6.5). The task is to design a filter that will filter out as much noise as possible from the square wave plus noise signal.
The sampling frequency is 100kHz.
Noise signal: 100.0*randn(1, length(t))
Square wave: 100*square(2*pi*1000*t)
What else do I need to know in order to design this filter using Butterworth or Chebyshev I or any filter? How do I determine the cut-off frequency for my filter?
The MATLAB function filter(B,A,x) will be used for the time-domain filtering operation.
I've started out by considering the frequency characteristics of each signal, but don't know how that will help i the design process.
Any help will be greatly appreciated.
Thanks
 
Last edited:
on Phys.org