How can I make low pass filter of this?
4 views (last 30 days)
Show older comments
How can I make low pass filter of this?
The problem: Generate a time series X of length 128 that is a sequence of 128 random numbers pulled from a uniformdistribution with a mean of zero and a range of 1 (i.e. from -0.5 to 0.5).Assume that the time between samples is 0.001 seconds (sampling rate of 1 kHz). Next, create a time series Y, also of length 128, that when convolved with X will act as a 100 Hz low-pass filter (it will attenuate high frequencies, but leave the low frequencies unchanged).
A = rand(1,128)-0.5; % Generate a time series X of length 128 that is a sequence of 128 random numbers pulled from a uniformdistribution with a mean of zero and a range of 1
And then, I am confusing about next step.
Could you help me??
0 Comments
Accepted Answer
Image Analyst
on 2 Oct 2021
Edited: Image Analyst
on 2 Oct 2021
Here's a start
% Construct time axis (called X instead of t for some reason).
X = -0.5 : 0.001 : 0.5
% Construct Y that is the same length as X.
Y = rand(size(X))
% Create filter window:
kernel = ......
% Do the convolution
yFiltered = conv(Y, kernel)
If you need more help, read this:
Another hint: create a step function with the edge at 100, then inverse fft it to get the spatial domain kernel that you convolve the signal with.
0 Comments
More Answers (0)
See Also
Categories
Find more on Digital Filter Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!