How to plot the magnitude of the Fourier transform of sampled pulse response?

5 views (last 30 days)
P(w) = 1 + 0.9e^(-jwT)
with T=1 and sampling theorem satisfaction I got P(e^-jw)= 1 + 0.9e^(-jw)
The pulse response is strictly band-limited in the Nyquist interval -Pi/T < w < Pi/T
What is the code for plotting the magnitude of the Fourier transform of sampled pulse response, i.e., 20log(|P(e^-jwT|)

Answers (1)

Image Analyst
Image Analyst on 4 Mar 2022
Did you try plot()? Like
plot(real(P), 'b-', 'LineWidth', 2);
  2 Comments
Image Analyst
Image Analyst on 4 Mar 2022
You asked about plotting: "What is the code for plotting the magnitude of the Fourier transform"
So assuming you have P, here is the full plotting code:
plot(abs(P), 'b-', 'LineWidth', 2);
grid on;
title('P vs. Frequency', 'FontSize', 18);
xlabel('Frequency', 'FontSize', 18);
ylabel('P', 'FontSize', 18);
Is this your homework? If so:

Sign in to comment.

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!