How can I make low pass filter of this?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Chris
el 2 de Oct. de 2021
Editada: Image Analyst
el 2 de Oct. de 2021
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 comentarios
Respuesta aceptada
Image Analyst
el 2 de Oct. de 2021
Editada: Image Analyst
el 2 de Oct. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Digital Filter Analysis en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!