Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Generate and plot a[n] = 2 cos(0.2mn) for 0 n 99 using the following MATLAB code: clear all n= [0:99]; x=2* cos (0.2*pi.
2. Generate and plot a[n] = 2 cos(0.2mn) for 0 n 99 using the following MATLAB code: clear all n= [0:99]; x=2* cos (0.2*pi. *n); stem (n, x); legend ('x [n] ); title ('Sequence of periodic signal'); xlabel('n'); ylabel('x[n]'); axis ([0 99 -2 2]); Examine the operation of each command line. Then answer the following: (b) (a) How many periods of the sinusoidal sequence are there in the plot? Determine the fundamental frequency and fundamental period of x[n]. Compute the power of r[n] = 2 cos(0.2mn). Suppose x[n] = 0 outside the interval 0 compute the energy of r[n], which is defined as: 99. With the use of MATLAB, (c) (d) (e) (h) 99 Ext0 = x[n]r*[n] = ]|2 n=0 99 where denotes the complex conjugate operator. (Hint: You may use the complex conjugate transpose command "" and matrix multiplication command "*" which are found using "help ops".) Repeat (d) with r[n] = 2e02, i.e., x=2*exp(j*0.2*pi.*n). Repeat (d) with r[n] = 2 cos(0.2mm + 1). Repeat (d) with r[n] = 2 cos(0.222mn). Repeat (g) with n= [0:999] and n= [0:9999]. Note that when [n] is of length N, the energy computation is generalized as: N-1 Ez.N=x[n]|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
The MATLAB code provided generates and plots a discretetime sinusoidal sequence xn 2cos02n for n ranging from 0 to 99 Lets go through the questions on...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started