How to Plot FFT for the iztrans function?

3 Ansichten (letzte 30 Tage)
Gayani
Gayani am 25 Mai 2023
Kommentiert: Gayani am 30 Mai 2023
I have received the inverse z transfer function for a filter. I need to plot the FFT for that. I tried a lot but it doesn`t work. Could you please support with me to plot the FFT? I am new to this area.
  2 Kommentare
Diwakar Diwakar
Diwakar Diwakar am 25 Mai 2023
please provide inverse Z-transform of the transfer function.
Gayani
Gayani am 30 Mai 2023
It is the inverse of Thiran filter

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Diwakar Diwakar
Diwakar Diwakar am 25 Mai 2023
Try this code. may be this code will help you.
% Define the transfer function coefficients
b = [1, -1]; % Numerator coefficients
a = [1, 0.5]; % Denominator coefficients
% Generate the frequency response using freqz
N = 1024; % Number of points for the frequency response
[H, f] = freqz(b, a, N);
% Plot the magnitude spectrum
figure;
plot(f, abs(H));
xlabel('Frequency');
ylabel('Magnitude');
title('Magnitude Spectrum');
% Plot the phase spectrum
figure;
plot(f, angle(H));
xlabel('Frequency');
ylabel('Phase');
title('Phase Spectrum');

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by