Clear Filters
Clear Filters

how to apply highpass, lowpass or bandpass filtering according to the paramaters ?

1 view (last 30 days)
I have to apply filtering to a discrete time function.
Input signal is n-by-1 vector. Sampling frequency is also given in Hz. In addition, lower bound and upper bound of the frequency components in Hz that we want to pass through are given. According to these variables I need to decide which type of filtering to apply. How can I understand which one of the lowpass,highpass or bandpass is going to be applied to the input signal.
I appreciate any help, thank you very much...

Accepted Answer

Wayne King
Wayne King on 16 May 2012
What are the lower and upper bounds? If the lower bound is 0 and the upper bound is some frequency less than the 1/2 the sampling frequency, that is lowpass, if the lower bound is some frequency greater than 0 and the upper bound is 1/2 the sampling frequency, that is highpass. If the lower and upper bound are greater than 0 and less than 1/2 the sampling frequency, that is bandpass.
  1 Comment
judy  frost
judy frost on 16 May 2012
Lower bounds and upper bounds are parameters to my function. Actually I think that your answer was what I needed. According to the entered value I am supposed to apply all three types of filtering.
Thank you so much.
Now I can try implementing these filters.

Sign in to comment.

More Answers (1)

srinivasa s r
srinivasa s r on 7 Mar 2018
if true
% code
end

Community Treasure Hunt

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

Start Hunting!