Question
MATLAB PLEASE
6. Determine which sequences are average power and plot 5 periods. For part (c), show that it is possible to express the sequ
MATLAB PLEASE
most simple code possible
0 0
Add a comment Improve this question Transcribed image text
Answer #1

n=-100:1:100;
%a
x1=2*cos((pi/6*n)+(pi/4)); %sequence
p1=seqperiod(x1); %period of sequence
E1 = sum(abs(x1).^2);
P1 = 1/numel(x1)*sum(abs(x1).^2);
plot(n,x1);
%b
x2=sin((pi/15*n)+(pi/5));
p2=seqperiod(x2);
E2 = sum(abs(x2).^2);
P2 = 1/numel(x2)*sum(abs(x2).^2);
%c
x3=4*sin(3*pi*n-(pi/2));
p3=seqperiod(x3);
E3 = sum(abs(x3).^2);
P3 = 1/numel(x3)*sum(abs(x1).^2);
%d
x4=cos(pi*n/sqrt(15));
p4=seqperiod(x4);
E4 = sum(abs(x4).^2);
P4 = 1/numel(x4)*sum(abs(x4).^2);
%e
x5=sin(pi*n/4)+3*cos((pi*n/3)-(pi/3));
p5=seqperiod(x5);
E5 = sum(abs(x5).^2);
P5 = 1/numel(x5)*sum(abs(x5).^2);
%f
x6=4*sin((pi*n/5)+(pi/4));
p6=seqperiod(x6);
E6 = sum(abs(x6).^2);
P6 = 1/numel(x6)*sum(abs(x6).^2);
%7
x7=2*sinc(pi/15*n);
p7=seqperiod(x7);
E7 = sum(abs(x7).^2);
P7 = 1/numel(x7)*sum(abs(x7).^2);

Add a comment
Know the answer?
Add Answer to:
MATLAB PLEASE MATLAB PLEASE most simple code possible 6. Determine which sequences are average power and plot 5 peri...
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
  • photo of the code please and an explnation if possible, Construct a simple MATLAB function program...

    photo of the code please and an explnation if possible, Construct a simple MATLAB function program my_factorial which calculates product of first n positive integer numbers (i.e. find factorial n!). For full points: - Make sure you protect the code from illogical use (n must be positive integer) - Test the function by comparing with built in MATLAB function factorial(n) - Make sure you test your function for any limitations. O marks) -3. Using my factorial function from the previous...

  • Please help by writing a MATLAB Code for the this lab Fourier Series Synthesis You will...

    Please help by writing a MATLAB Code for the this lab Fourier Series Synthesis You will consider five continuous-time signals 1- 2- for A D 4- We were unable to transcribe this imageWe were unable to transcribe this imager(t) e-t for-1 < t > 1 x(t) 2 2 4 3 3 x(t) -4 2 2 4 2 1, 0sts be a periodic signal with fundamental period T = 2 and Fourier coefficients ak. (a) Determine the value of ao (b)...

  • B oth 100 Day PH262 Page 1 of 5 Lab #13 AC Circuits, Part 1 RC...

    B oth 100 Day PH262 Page 1 of 5 Lab #13 AC Circuits, Part 1 RC & RL, Phase Measurements THEORY The rotating phase representation for series AC circuits should be familiar from textbook and lecture notes A brief outline of the essential points is provided here. If a series RLC circuit is connected across a source of om which is a sinusoidal function of time, then und all its derivatives will also be inside. Sonce all demits in a...

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