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
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)
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.