Simple linear phase bandpass filter design

8 ビュー (過去 30 日間)
Omid Zobeiri
Omid Zobeiri 2017 年 9 月 29 日
回答済み: Nick Choi 2017 年 10 月 2 日
Hi, I tried to make a simple linear phase band pass filter. But the result seems more like a low pass filter. I will be appreciated if you let me know whether I'm in a right path or not. Here is the program:
% code
fs=20; %sampling rate
f1=0.07;
fc=0.365; %for frequency range of [0.07 0.8] (Hz)
t = -50:50;
omega = 2*fc/fs_mat; %w0=(2*pi*f)/fs_mat
omega1=2*f1/fs_mat;
a=1;
b = sinc(omega*t).*omega.* hamming(length(t))';
shifted_b=b.*cos(pi*(omega+omega1)*t);
% figure
freqz(shifted_b,a);

採用された回答

Nick Choi
Nick Choi 2017 年 10 月 2 日
It may be helpful to use the Filter Designer app for this. You could input your filter specifications, generate the filter's responses and analyze them within the app. Once a suitable filter design has been obtained, you can generate MATLAB code for it and use it in other applications.
The following documentation page provides additional information on how to use the Filter Designer: https://www.mathworks.com/help/dsp/ug/using-filter-designer.html

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by