Filter data through a bandpass FIR

3 ビュー (過去 30 日間)
Sam Hurrell
Sam Hurrell 2022 年 7 月 26 日
回答済み: Star Strider 2022 年 7 月 26 日
I have multiple sets of data, all with the same timesteps, sample size of 4000, and sampling frequency (Fs) of 50MHz but different frequency based values. Each dataset has a different central frequency (Fc) from 2.4 - 0.6MHz, and has a bandpass filter (BP) of BP = [0.9*Fc 1.1*Fc]. I've tried a digital filter of:
df = bandpass(data(:,2),BP,Fs,'ImpulseResponse','fir');
This filter works for the first few datasets of higher frequencies, but stops when halfway through an error message says "Data length must be larger than 4362 samples". How can this be fixed without compromising the results, or is there a better filter to use?

回答 (1 件)

Star Strider
Star Strider 2022 年 7 月 26 日
That’s a problem with FIR filters, simply because in most instances they tend to be very long vectors.
Use an IIR filter instead:
df = bandpass(data(:,2),BP,Fs,'ImpulseResponse','iir');
This will design and implement a very efficient elliptic filter.
.

カテゴリ

Help Center および File ExchangeDigital and Analog Filters についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by