Filtering between frequency range

3 ビュー (過去 30 日間)
Anwesh Saha
Anwesh Saha 2023 年 2 月 3 日
回答済み: Star Strider 2023 年 2 月 3 日
I have a matrix of 48X25600 in size. Each row depicts the signal amplitudes at 200 Hz.
I want to filter each row between a particular frequency band (0.05 - 01)Hz.
How do I do it?

採用された回答

Star Strider
Star Strider 2023 年 2 月 3 日
The function you use depends on how you want to filter them. The filtering functions (includijng filtfilt) operate column-wise (i.e. each column is a different signal), so the filter a matrix row-wise, it will be necessary to do a simple transpose (the .' operator) first.
After that, use either:
y = bandpass(x, [0.05 0.1], Fs, 'ImpulseResponse','iir');
or:
y = bandstop(x, [0.05 0.1], Fs, 'ImpulseResponse','iir');
where ‘Fs’ is the sampling frequency (that I assume is 200 Hz), and ‘x’ is the matrix of signals after transposition.
Transpose the ‘y’ results to put them back in the same orientation as the input matrix ‘x’, if necessary.
See the documentation for bandpass and bandstop for details.
.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBartlett についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by