How can I do/implement Low pass filter function in matlab?

223 views (last 30 days)
Hi !
how can I use/do LOW PASS FILTER in matlab? I want to determine as inputs the cut off frequency .. and I want also as second input to enter to LOW PASS FILTER the signal (it's a vector) , so Im trying to do LOW PASS FILTER function called function Low_Pass_Filter(first input the cutoff frequency that I want to input it to my LOW PASS FILTER, Second input is the signal which it's a vector 1X10k size) .. any help please how can I do that in matlab?
thanks alot!
  1 Comment
Satyam
Satyam on 2 Nov 2023
type fdatool in matlab command prompt and there you will get all options for realizing a filter

Sign in to comment.

Answers (1)

Star Strider
Star Strider on 22 Jun 2020
This is already available in the lowpass function (introduced in R2018a).
Otherwise, it is straightforward to define filters with the Signal Processing Toolbox functions. Note that you need to define the sampling freuqency of the signal in order to define the cutoff frequency correctly.
  4 Comments
Mohamed Jamall
Mohamed Jamall on 22 Jun 2020
Edited: Mohamed Jamall on 22 Jun 2020
THANKS ALOT!
I understand the code, but there's something that Im missing, lets assume my frequency of transmitted data(I transmit RF PACKETS) is 868MHZ, symbol rate (bit rate) is 50Kbouad , sampling frequency is 2048K .
so if I want to do my Low Pass filter that the cut off of my LPF will be 50KBOAUD , what should I do? here's my problem. I want that my cutoff frequency of my LPF to be my symbol rate ..
thanks in advance for any assistance! appreciate!!!!
Star Strider
Star Strider on 22 Jun 2020
My code is intended for signal processing, not communications. I have essentially no experience with digital communications protocols. You will need to experiment to be certain my code does what you want in your application.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!