Question

A series of 16 samples starting at index n = −8 with sampling period ∆t =...

A series of 16 samples starting at index n = −8 with sampling period ∆t = 0.25 µs is observed to be

[ −6.5000 2.3910 −11.1569 −6.5307 1.5000 −8.0615 −8.3284 −1.3045 −2.5000 −12.3910 0.1569 −3.4693 −10.5000 −1.9385 −2.6716 −8.6955 ]

where the 9th sample represents the time origin (t = 0). Use MATLAB to find the FFT (magnitude and phase) of this sampled time vector. Explain how you keep track of the origin of the frequency domain vector so that in a final plot of the spectrum, the origin (f = 0 Hz) is the 9th element of the frequency domain vector. Use the uncertainly principle to make the numbers corresponding to the horizontal axis of your frequency plots correspond to the correct values in Hz. Don’t forget that the spectrum is likely complex valued. The MATLAB command fftshift might be useful to explore for this problem.

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

MATLAB code to obtain the FFT sequence

x = [-6.5000 2.3910 -11.1569 -6.5307 1.5000 -8.0615 -8.3284 -1.3045 -2.5000...
-12.3910 0.1569 -3.4693 -10.5000 -1.9385 -2.6716 -8.6955]; % Signal x(t)


abs(fftshift(fft(x))) % magnitude of the spectrum

Output:

ans =

Columns 1 through 8

0 16.0001 0 47.9999 4.0000 0.0001 0 0.0001

Columns 9 through 16

80.0000 0.0001 0 0.0001 4.0000 47.9999 0 16.0001

angle(fftshift(fft(x)))*57.3 % phase of the spectrum

Output:

ans =

Columns 1 through 8

0 -180.0132 0 90.0063 0 -104.6037 0 -142.5500

Columns 9 through 16

180.0133 142.5500 0 104.6037 0 -90.0063 0 180.0132

Add a comment
Know the answer?
Add Answer to:
A series of 16 samples starting at index n = −8 with sampling period ∆t =...
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
  • Program from problem 1: (Using MATLAB) % Sampling frequency and sampling period fs = 10000; ts...

    Program from problem 1: (Using MATLAB) % Sampling frequency and sampling period fs = 10000; ts = 1/fs; % Number of samples, assume 1000 samples l = 1000; t = 0:1:l-1; t = t.*ts; % Convert the sample index into time for generation and plotting of signal % Frequency and amplitude of the sensor f1 = 110; a1 = 1.0; % Frequency and amplitude of the power grid noise f2 = 60; a2 = 0.7; % Generating the sinusoidal waves...

  • Can you please help me answer Task 2.b? Please show all work. fs=44100; no_pts=8192; t=([0:no_pts-1]')/fs; y1=sin(2...

    Can you please help me answer Task 2.b? Please show all work. fs=44100; no_pts=8192; t=([0:no_pts-1]')/fs; y1=sin(2*pi*1000*t); figure; plot(t,y1); xlabel('t (second)') ylabel('y(t)') axis([0,.004,-1.2,1.2]) % constrain axis so you can actually see the wave sound(y1,fs); % play sound using windows driver. %% % Check the frequency domain signal. fr is the frequency vector and f1 is the magnitude of F{y1}. fr=([0:no_pts-1]')/no_pts*fs; %in Hz fr=fr(1:no_pts/2); % single-sided spectrum f1=abs(fft(y1)); % compute fft f1=f1(1:no_pts/2)/fs; %% % F is the continuous time Fourier. (See derivation...

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