i want to plot freq response of FIR filter

11 views (last 30 days)
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

Answers (1)

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

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!