How to Plot FFT for the iztrans function?

조회 수: 1 (최근 30일)
Gayani
Gayani 2023년 5월 25일
댓글: Gayani 2023년 5월 30일
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
Diwakar Diwakar
Diwakar Diwakar 2023년 5월 25일
please provide inverse Z-transform of the transfer function.
Gayani
Gayani 2023년 5월 30일
It is the inverse of Thiran filter

댓글을 달려면 로그인하십시오.

답변 (1개)

Diwakar Diwakar
Diwakar Diwakar 2023년 5월 25일
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');
  댓글 수: 1
Gayani
Gayani 2023년 5월 30일
It really helps. Thank you so much

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Fourier Analysis and Filtering에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by