Question

5. Consider the signal x (t) = cos (2n . 500) + cos (2n . 1 500). Its spectrum X1c consists of a pair of spectral lines at positive and negative frequencies. Use the MATLAB command fft to find and plot the signals spectrum using various values of N.

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

clc;
clear all;
close all;

fm=1500;
Fs = 2*fm;   
T = 1/Fs;
L = 3000;
t = (0:L-1)*T;   

x = cos(2*pi*500*t)+cos(2*pi*1500*t);
N = 2^nextpow2(L);
X = fft(x,N)/L;
f = Fs/2*linspace(0,1,N/2+1);

plot(f,2*abs(X(1:N/2+1)))
title('Amplitude Spectrum of x(t)')
xlabel('Frequency (Hz)')
ylabel('|X(f)|')

Amplitude Spectrum of xt) 1.5 0.5 510 1500 Frequency (Hz)

Add a comment
Know the answer?
Add Answer to:
5. Consider the signal x (t) = cos (2n . 500) + cos (2n . 1...
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
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