i want to plot freq response of FIR filter

7 次查看(过去 30 天)
the filter is :
w = linspace(0,pi);
b0=1
b1=-2
b2=4
b=b0*conv(b1,b2)
freqz(b,w)
it gives me an error

回答(1 个)

Mathieu NOE
Mathieu NOE 2023-2-9
hello
try this
b= [1 -2 4];
freqz(b,1)

类别

Help CenterFile Exchange 中查找有关 Digital Filter Analysis 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by