Question

Exercise 4. Computing and displaying the Fourier Transform of a signal Later in the semester it will become useful to determi

0 0
Add a comment Improve this question Transcribed image text
Answer #1

MATLAB:


clc;close all;clear all;
n=-100:100
h=(n>=-10)-(n>=11)
w=linspace(-pi,pi,1024)
H=fftshift(fft(h,1024))
figure;
subplot(211)
stem(n,h,'filled','m')
axis([-100 100 0 1.5])
xlabel('n')
ylabel('h(n)')
title('Rectangular function h(n)')


subplot(212)
plot(w,abs(H),'r')
axis([-pi pi 0 25])
xlabel('w')
ylabel('|H(e^{j omega)|')
title('Magnitude response')


Rectangular function h(n) 1.4 1.2 E 0.8 208F 0.6 0.4 0.2 100 50 50 100 Magnitude response 25 20 15 2 10 2 -2 -3

Add a comment
Know the answer?
Add Answer to:
Exercise 4. Computing and displaying the Fourier Transform of a signal Later in the semester it will become useful to d...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Lab #2 Discrete-time Fourier Transform (DTFT) OBJECTIVES: • Explore the DTFT, its meanings and concepts. •...

    Lab #2 Discrete-time Fourier Transform (DTFT) OBJECTIVES: • Explore the DTFT, its meanings and concepts. • Get acquainted with Matlab/Octave 1) Start MATLAB and change the “Current Directory” in the top of the window (or type) >> cd '' (example: >> cd 'C:\NIU\lab2') Alternatively, if you don't want to use MATLAB, you can open a web-browser and go to “octave-online.net”. 2) Download and execute LAB2forStudent_A.M with >> lab2forStudent_A and observe that it produces a Discrete-Time (DT) signal xVec. 3) TO...

  • 10. Find the Fourier transform of a continuous-time signal x(t) = 10e Su(t). Plot the magnitude...

    10. Find the Fourier transform of a continuous-time signal x(t) = 10e Su(t). Plot the magnitude spectrum and the phase spectrum. If the signal is going to be sampled, what should be the minimum sampling frequency so that the aliasing error is less than 0.1 % of the maximum original magnitude at half the sampling frequency. 11. A signal x(t) = 5cos(2nt + 1/6) is sampled at every 0.2 seconds. Find the sequence obtained over the interval 0 st 3...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT