Consider the discretetime sequence xn sinn pi 025 Write a MA
Consider the discrete-time sequence x[n] sin[(n pi 0.25)]. Write a MATLAB codc to plot the signal x[n] and from the plot estimate the fundamental period of the signal.
Solution
MATLAB CODE:
clear all
n=0:1:30;
x = sin(0.25*pi*n);
subplot(2,2,2),stem(n,x);
xlabel(\'n\'),ylabel(\'x(n)\');
axis([0 30 -1 1]);
titlt(\'Sinusaoidal Sequence\')
/////////////
Time period estimated from the plot T = 8.
![Consider the discrete-time sequence x[n] sin[(n pi 0.25)]. Write a MATLAB codc to plot the signal x[n] and from the plot estimate the fundamental period of the Consider the discrete-time sequence x[n] sin[(n pi 0.25)]. Write a MATLAB codc to plot the signal x[n] and from the plot estimate the fundamental period of the](/WebImages/26/consider-the-discretetime-sequence-xn-sinn-pi-025-write-a-ma-1069155-1761559769-0.webp)