Question

Consider the continuous time signal: 2. , π (sin (2t) (Sin (8t) A discrete time signal x[n] -xs(t) -x(nTs) is created by samp

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

close all,
clear all,
clc,

Ts = (2*pi)/60;
Fs=1/Ts;
w = -2*pi:Ts:2*pi;
t =-1:Ts:1;

for r=1:length(t)
x_t(r) = Ts*(pi/2)*(sin(2*t(r))/(pi*t(r)))*(sin(8*t(r))/(pi*t(r)));
end
subplot(2,1,1); plot(x_t); title('Original Signal x_t = Ts*(pi/2)*(sin(2*t)/(pi*t))*(sin(8*t)/(pi*t)), Ts = (2*pi)/60');

L=length(x_t);
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(x_t,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2);

% Plot single-sided amplitude spectrum.
subplot(2,1,2); plot(f,2*abs(Y(1:NFFT/2)));
str = strcat('FFT at N = ',num2str(NFFT),' Points'); title(str);
xlabel('Frequency (Hz)'); ylabel('|Y(f)|');


figure,
Ts = (2*pi)/18;
Fs=1/Ts;
w = -2*pi:Ts:2*pi;
t =-1:Ts:1;

for r=1:length(t)
x_t(r) = Ts*(pi/2)*(sin(2*t(r))/(pi*t(r)))*(sin(8*t(r))/(pi*t(r)));
end
subplot(2,1,1); plot(x_t); title('Original Signal x_t = Ts*(pi/2)*(sin(2*t)/(pi*t))*(sin(8*t)/(pi*t)), Ts = (2*pi)/18');

L=length(x_t);
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
Y = fft(x_t,NFFT)/L;
f = Fs/2*linspace(0,1,NFFT/2);

% Plot single-sided amplitude spectrum.
subplot(2,1,2); plot(f,2*abs(Y(1:NFFT/2)));
str = strcat('FFT at N = ',num2str(NFFT),' Points'); title(str);
xlabel('Frequency (Hz)'); ylabel('|Y(f)|');

Original Signal xt = Ts(pi/2)(sin(2e)/(pi*t))(sh@*)/(рії). Ts = (7pp60 0.3 0.25 0.15 0.05 20 12 10 0.05 FFT at N 32 Points

Original Signal xt = Ts(pi/2)(sin㎝)/(pi*t))(sin@*)/(pnj. Ts-prpi)/18 1.2 0.2 0.2 10 18 20 FFT at N-32 Points 0.25 0.2 0.15

Add a comment
Know the answer?
Add Answer to:
Consider the continuous time signal: 2. , π (sin (2t) (Sin (8t) A discrete time signal x[n] -xs(t) -x(nTs) is created by sampling x() with sampling interval, 2it 60 a) Plot the Fourier Transform of 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
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