How can I make low pass filter of this?
조회 수: 4 (최근 30일)
이전 댓글 표시
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
채택된 답변
Image Analyst
2021년 10월 2일
편집: Image Analyst
2021년 10월 2일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Digital Filter Analysis에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!