How can I make low pass filter of this?
3 ビュー (過去 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!