Plot the amplitude and phase response for the given FIR system.

35 visualizaciones (últimos 30 días)
Abod
Abod el 9 de Feb. de 2023
Respondida: Sulaymon Eshkabilov el 10 de Feb. de 2023
1-2z^-1+4z^-2
Plot the amplitude and phase response for the given FIR system.

Respuestas (2)

Sarvesh Kale
Sarvesh Kale el 10 de Feb. de 2023
Hi Abod,
To plot the frequency response of FIR system use the following code
b=[1 -2 4]; % define numerator coefficient
a=[1]; % define denominator coefficient
figure ;
freqz(b,a,2048) % plot frequency response for 2048 points
You can take a look at following documentation of freqz and phasez to get more information on them
I hope this answers your queries, please accept the answer if it does.
Thank you.

Sulaymon Eshkabilov
Sulaymon Eshkabilov el 10 de Feb. de 2023
Use tf() and bode():
z = tf('z',0.1);
H = (4*(z^-2)-2*(z^-1)+1) /1
H = z^3 - 2 z^2 + 4 z ----------------- z^3 Sample time: 0.1 seconds Discrete-time transfer function.
bode(H)

Categorías

Más información sobre Get Started with DSP System Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by