5. Generate x[n] = 2 cos(0.2an+1), 0n 63 using x=2*cos(0.2*pi.*n+1) with n= [0:63]. Use the...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
5. Generate x[n] = 2 cos(0.2an+1), 0≤n ≤ 63 using "x=2*cos(0.2*pi.*n+1)" with "n= [0:63]". Use the following MATLAB code to produce y[n] from x[n]: x1 [0 0 0 0 x]; x2=[0 0 0 x 0]; x3 [0 0 x 0 0]; x4 [0 x 0 0 0]; x5=[x 0 0 0 0]; y= (x1+x2+x3+x4+x5)/5; yay (1:64); plot (n,x, 'b',n, y, 'r'). legend ('x[n]', 'y[n]'); Answer the following questions: (a) Write an equation that relates [n] and y[n] for 4 ≤ n ≤ 63. (b) State two differences between [n] and y[n] for 4 ≤ n ≤ 63. (c) Try the following MATLAB code to generate [n] by passing [n] through a discrete-time system with impulse response h[n]: h=[0.2 0.2 0.2 0.2 0.2]; z=conv (h, x); z=z (1:64); By plotting [n] and y[n] together, determine if they are equal or not. 5. Generate x[n] = 2 cos(0.2an+1), 0≤n ≤ 63 using "x=2*cos(0.2*pi.*n+1)" with "n= [0:63]". Use the following MATLAB code to produce y[n] from x[n]: x1 [0 0 0 0 x]; x2=[0 0 0 x 0]; x3 [0 0 x 0 0]; x4 [0 x 0 0 0]; x5=[x 0 0 0 0]; y= (x1+x2+x3+x4+x5)/5; yay (1:64); plot (n,x, 'b',n, y, 'r'). legend ('x[n]', 'y[n]'); Answer the following questions: (a) Write an equation that relates [n] and y[n] for 4 ≤ n ≤ 63. (b) State two differences between [n] and y[n] for 4 ≤ n ≤ 63. (c) Try the following MATLAB code to generate [n] by passing [n] through a discrete-time system with impulse response h[n]: h=[0.2 0.2 0.2 0.2 0.2]; z=conv (h, x); z=z (1:64); By plotting [n] and y[n] together, determine if they are equal or not.
Expert Answer:
Answer rating: 100% (QA)
Given xn2cos02n1 for 0n63 using MATLAB code n 063 x 2 cos02 pi n 1 x1 0 0 0 0 x x2 0 0 0 x 0 x3 0 0 ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Overview of the San Antonio Federal Credit Union's current offerings, practices, and other business-related information. In this component, you will need to also provide a brief comparison between...
-
. Sara invested $4,600 into an account that grew to $35,000 over a period of 10 years. The interest in the account is compounded annually. What was the annual interest rate of the account? % Give the...
-
Use the following MATLAB commands to construct a symbolic function. syms x y f = (y + l)^3 + x * y^2 + y^2 - 4 * x * y - 4 * y + l Compute the first partials of f and the Hessian of f by setting fx =...
-
400 KVA 34000/400 V transformer has copper losses is 5000 W and iron losses is 1000 W under nominal load and nominal voltage. A) Calculate the efficiency of the transformer when the nominal load is...
-
If the required clamping force at the board A is to be F, determine the torque M that must be applied to the handle of the hold-down clamp to tighten it down. The single square-threaded screw has a...
-
Suppose an asset provides annual risk-free cash flows of $200 at the end of each year in perpetuity. The risk-free rate is 5%. What is the value of this perpetuity?
-
Help for Insomniacs In Exercise 1.23, we learned of a study to determine whether just one session of cognitive behavioral therapy can help people with insomnia. In the study, forty people who had...
-
Jay signed a two-year lease containing a clause that expressly prohibited subletting. After six months, Jay asked the landlord for permission to sublet the apartment for one year. The landlord...
-
Suppose that the rate of inflation (the percent change in the CPI) is expected to be 8% next year. If you expect to earn a 4% raise over the same time period, how has your purchasing power changed?
-
The trial balance of Pacilio Security Services Inc. as of January 1, 2015, had the following normal balances: Cash ...................$62,860 Accounts receivable ............. 20,500 Supplies...
-
For the year just completed, Hanna Company had net income of $99,000. Balances in the companys current asset and current liability accounts at the beginning and end of the year were as follows:...
-
Write the expression in the form \(D \sin (\omega t+\phi)\). \(\cos t+\frac{1}{3} \sin t\)
-
Express each complex number in its polar form. \(-\frac{1}{2} j\)
-
Using real-world examples, discuss the possible relationship between economic growth and economic development.
-
Find all possible values for each expression. \(\sqrt{1+j \sqrt{2}}\)
-
Write the expression in the form \(D \sin (\omega t+\phi)\). \(\frac{1}{2} \cos 3 t-\sin 3 t\)
-
What is the difference between stress and strength? Select one: a. Stress and strength are measured in different units. b. Strength is always bigger than stress. c. Stress is the actual force per...
-
After Theorem 1.5 we note that multiplying a row by 0 is not allowed because that could change a solution set. Give an example of a system with solution set S0 where after multiplying a row by 0 the...
-
Prove that given any n N, there is a function f Cn(R) such that f(n+1)(x) does not exist for any x R.
-
Prove that is differentiable on R2 for all a f(x, y) = Itx2+y2)" (x, y)(0.0) 0
-
Suppose that X satisfies the Bolzano-Weierstrass Property and that A and B are compact subsets of X. Prove that if A B = and if dist (A, B) := inf{p(x, y) : x A and y B}, then dist (A, B) > 0....
-
Bethany, who weighs 560 N, lies in a hammock suspended by ropes tied to two trees. One rope makes an angle of 45 with the ground; the other makes an angle of 30. Find the tension in each of the ropes.
-
In the Skycoaster amusement park ride, riders are suspended from a tower by a long cable. A second cable then lifts them until they reach the starting position indicated in Figure P5.3. The lifting...
-
A dump truck, whose bed is made of steel, holds an old steel watering trough. The bed of the truck is slowly raised until the trough begins to slide. What is the acceleration of the trough as it...
Study smarter with the SolutionInn App