plz answer Periodic Discrete-Time Signal Generation Generate a set of discrete-t
ID: 2269084 • Letter: P
Question
plz answer
Periodic Discrete-Time Signal Generation Generate a set of discrete-time sinusoids using both Excel and MATLAB. The signals 1) (25 marks) experiment with these), and a frequency as specified below. Plot the sample values against time and observe the resulting waveform. Use a suitable time range so as to show the relevant features of the signal. Comment on whether the observed waveform corresponds to the expected waveform, and explain any significant differences. (HINT: a key word that you may wish to investigate and explain is ‘aliasing'). Use the following values (individually) for the frequency of the sinusoid: 1 kHz, 2 kHz, 48 kHz, 52 kHz, 98 kHz, 99 kHz.Explanation / Answer
Ans)
==============MATLAB CODE============
N = 256;
n = 0:(N-1);
x = ((0.5).^n).*cos(4*n); % u[n]=1for n>0 else u[n]=0
k = 0:(N-1);
Xdft = fft(x,N);
mag_Xdft = abs(Xdft);
phase_Xdft = angle(Xdft);
figure, subplot(2,1,1);
stem(k, mag_Xdft), grid on;
title('Magnitude of DTFT of x[n]'), xlabel('k'), ylabel('| X[k]|');
subplot(2,1,2);
stem(k, phase_Xdft), grid on;
title('Phase of DTFT of x[n]'), xlabel('k'), ylabel('< X[k] (radians)');
=======================
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.