Lowpass filter with own cutoff frequency and y axis in dB.
10 views (last 30 days)
Bhavana Ravirala on 9 May 2022
I understand that you are trying to implement a low pass filter. Using the "lowpass" command in MATLAB output signal from a lowpass filter can be obtained.
fs = 0.1; % sampling frequency of input signal
t= 0 : 1/fs : 1;
x= sin(2*pi*50*t); % input signal
lowpass(x,3, fs); % setting the higher cutoff frequency as 3Hz
For more information refer to the below documentation:
Lowpass-filter signals - MATLAB lowpass (mathworks.com)Hope this helps!!