How can I make low pass filter of this?
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Image Analyst
il 2 Ott 2021
Modificato: Image Analyst
il 2 Ott 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Digital Filter Analysis in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!