Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please compete using Matlab and post the code and results 6. Determine which seq

ID: 2293454 • Letter: P

Question

please compete using Matlab and post the code and results

6. Determine which sequences are periodic. Hence, for the periodic ones, find their period average power and plot 5 periods. For part (e), show that it is possible to express the sequence using a simple formula. As for the aperiodic signals, just plot 40 samples. (a) zl(n)=2cos(H-+5) (b) r2(n) = sin( + (c) za(n)_ 4 sin(3m- (d) 24(n) = c08 ) v13 (f) xe(n) = 4 sin(?+5)cos(?) (g) 27(n) = 2sine( n). Hint: Choose-100 n 100. Hence, find the energy.

Explanation / Answer

a)

>> n=0:0.1:80;

>> x1=2*cos((pi/6)*n+(pi/4));

>> stem(n,x1);

>> N=length(n);

>> Power=(1/N)*sum(abs(x1).^2)

B)

>> n=0:0.1:80;

>> x2=sin((pi/15)*n+(pi/5));

>> stem(n,x2);

>> N=length(n);

>> Power=(1/N)*sum(abs(x2).^2

C)

>> n=0:0.1:80;

>> x3= 4*sin((pi)*3*n-(pi/2));

>> stem(n,x3);

>> N=length(n);

>> Power=(1/N)*sum(abs(x3).^2)

d)

>> n=0:0.1:80;

>> x4= cos (pi /sqrt(15)*n);

>> stem(n,x4);

>> N=length(n);

>> Power=(1/N)*sum(abs(x4).^2)

e)

>> n=0:0.1:80;

>> x5=sin((pi/4)*n)+3*cos((pi/3)*n-(pi/3));

>> stem(n,x5);

>> N=length(n);

>> Power=(1/N)*sum(abs(x5).^2)