Question

(a) Generate the following discrete functions using MATLAB. Plot the two functions on the same page...

(a) Generate the following discrete functions using MATLAB. Plot the two functions on the same page using MATLAB stem function. For x2[k] plot the real and imaginary parts separately. Therefore, a total of three plots will be plotted on one page.

(i) x1[k]= -5.1sin((0.1*pi*k)-3*pi/4)+1.1cos(0.4*pi*k) such that k belongs in[-10,40]

(ii)x2[k]= ((-0.9)^k)*exp(i*pi*k/10) such that k belongs in[0,100]

(b) Are x1[k] and x2[k] periodic sequences. If so, what are their periods? Mark them on the plots.

(c) Calculate the total energy of x1[k] and x2[k] .

Homework Answers

Answer #1

Matlab code:

clear all;
clc;
k = (-10:40)';
x1 = -5.1*sin((0.1.*pi.*k)-3.*pi/4)+1.1*cos(0.4.*pi.*k);
subplot(3,1,1);
stem(k,x1); %plotting signal x1
title('-5.1*sin((0.1.*pi.*k)-3.*pi/4)+1.1*cos(0.4.*pi.*k)');
xlabel ('N');
ylabel ('Amp');
%Energy computation for x1
px1 = sum(x1.^2);
disp('Energy of e1 is');
disp(px1);
subplot(3,1,2);
k = (0:100)';
x2 = ((-0.9).^k).*exp(1i.*pi.*k./10);
x2 = abs(x2);
stem(k,x2); %plotting signal x2
title('(-0.9).^k).*exp(1i.*pi.*k./10');
xlabel ('N');
ylabel ('Amp');
N = length(k);
disp('Energy of e2 is');
%Energy computation for x2
px2 = sum(x2.^2);
disp(px2);

Simulated plots:

Energy computed for the two signals.

For signal x1 is periodic with period N =20 and it has infinite energy.

For signal x2 is aperiodic and it has energy of 5.2632.

Know the answer?
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
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT
Active Questions
  • 4. List and describe the THREE (3) necessary conditions for complete similarity between a model and...
    asked 23 minutes ago
  • In C++ Complete the template Integer Average program. // Calculate the average of several integers. #include...
    asked 28 minutes ago
  • A uniform rod is set up so that it can rotate about a perpendicular axis at...
    asked 30 minutes ago
  • To the TwoDArray, add a method called transpose() that generates the transpose of a 2D array...
    asked 51 minutes ago
  • How could your result from GC (retention time, percent area, etc.) be affected by these following...
    asked 1 hour ago
  • QUESTION 17 What are the tasks in Logical Network Design phase? (Select five. ) Design a...
    asked 1 hour ago
  • What is the temperature of N2 gas if the average speed (actually the root-mean-square speed) of...
    asked 1 hour ago
  • Question One: Basic security concepts and terminology                         (2 marks) Computer security is the protection of...
    asked 1 hour ago
  • In program P83.cpp, make the above changes, save the program as ex83.cpp, compile and run the...
    asked 1 hour ago
  • the determination of aspirin in commercial preparations experment explain why the FeCl3-KCl-HCl solution was ased as...
    asked 1 hour ago
  • Describe important events and influences in the life of Wolfgang Amadeus Mozart. What styles, genres, and...
    asked 1 hour ago
  • 3.12 Grade Statistics Write a python module "school.py" that prints school information (first 3 lines of...
    asked 1 hour ago