Question

Using the course Matlab dtft function compute the magnitude, and phase for the following discrete-time signal а) x(п) -п(09)[

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

The first signal exists for n=0 to n=20 after which it is zero and the second signal exists for n=0 to n=39. The following are the MATLAB codes and the corresponding plots.

Part a.

===================================================================

n=0:1:20;
x=n.*(0.9).^(n);
w=-pi:.01:pi;
for i=1:length(w)
X(i)=sum(x.*exp(-1i*w(i)*n));
end
subplot(1,2,1);plot(w,abs(X));title('Magnitude plot');xlabel('\omega');ylabel('Magnitude');
subplot(1,2,2);plot(w,angle(X));title('Phase plot');xlabel('\omega');ylabel('Phase (radians)');

Phase plot Magnitude plot 50 50 40 30P 20 10 apnyuew Phase (radians)Part b.

=====================================================================================

n=0:1:39;
x=cos((n*pi)/10-pi/4);
w=-pi:.01:pi;
for i=1:length(w)
X(i)=sum(x.*exp(-1i*w(i)*n));
end
subplot(1,2,1);plot(w,abs(X));title('Magnitude plot');xlabel('\omega');ylabel('Magnitude');
subplot(1,2,2);plot(w,angle(X));title('Phase plot');xlabel('\omega');ylabel('Phase (radians)');

Phase plot Magnitude plot 4 25 3 20 2 15 10 2 5 -3 -4 -4 0 -4 4 2 -2 A 7 N + N Phase (radians) - LO Magnitude

Add a comment
Know the answer?
Add Answer to:
Using the course Matlab dtft function compute the magnitude, and phase for the following discrete-time signal...
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