Question

Given, x[n] 2cos ((/5)n)3sin((n/10)n)

(i) In MATLAB, analyze the signal by performing Fourier Transform for -pi <= 0 <= pi. ("<=" represent less than or equal to)

(ii) Comment on your observation.

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

I have written a code for calculation of fourier transform and printed signal vs time, magnitude of fourier transformed signal vs frequency and phase angle of fourier transformed signal vs frequency

--------------

t=-pi:0.1:pi;
x = 2*cos((pi/5)*t)+ 3*sin((pi/10)*t);
N = length(x);
X = zeros(N,1);
for k = 0:N-1
for n = 0:N-1
X(k+1) = X(k+1) + x(n+1)*exp(-j*pi/2*n*k);
end
end

subplot(311)
stem(t,x);
xlabel('Time (in seconds)');
ylabel('Amplitude');
title('Time vs Input')

subplot(312)
stem(t,X);
xlabel('Frequency');
ylabel('Magnitude');
title('Frequency - Magnitude')

subplot(313)
stem(t,angle(X));
xlabel('Frequency');
ylabel('Phase angle');
title('Frequency - Phase')

---------------------------------------

Time vs Input 111すますます Time (in seconds) Frequency Magnitude 60 40 20 20 Frequency Frequency Phase Frequency

Add a comment
Know the answer?
Add Answer to:
Given, (i) In MATLAB, analyze the signal by performing Fourier Transform for -pi <= 0 <=...
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