Given the following discrete-time functions x[n] and h[n]: 8[n+ 1] 28[n] +38[n 1]-48[n- 2] + 28[n-4]...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Given the following discrete-time functions x[n] and h[n]: 8[n+ 1] 28[n] +38[n 1]-48[n- 2] + 28[n-4] + 8[n-5] h[n] = 38[n] -28[n 1] + 8[n-2] -28[n-3] + 8[n- 4]-48[n-6] +38[n-8] Use MATLAB to complete the following and provide MATLAB code for each task: Task 1 (10 points each): A. Express x[n] and h[n] as matrices. B. Find the length of x[n] and length of h[n]. x[n] = V C. What do you expect the length of the convolution of x[n] and h[n] to be? D. Manually (analytically) calculate y[n] = x[n] *h[n] using any of the preferred methods. Task 2 (20 points each): A. Write MATLAB code to find the convolution y[n] of x[n] and h[n] without using the built-in conv(x.h) function. (Tip: You will need to use nested (for loops) to accomplish this task.) B. Plot y[n], x[n], and h[n] in a single window using the subplot command. Your plots should have the proper horizontal axis definition for each function. For example, when plotting x[n], use the stem function as follows: stem([-1:5], x) since the domain of x[n] starts from-1 and ends at +5. C. Verify your results by the conv(x.h) command and plot the result. Compare it to your analytical solution in ID and your results in 2B. Given the following discrete-time functions x[n] and h[n]: 8[n+ 1] 28[n] +38[n 1]-48[n- 2] + 28[n-4] + 8[n-5] h[n] = 38[n] -28[n 1] + 8[n-2] -28[n-3] + 8[n- 4]-48[n-6] +38[n-8] Use MATLAB to complete the following and provide MATLAB code for each task: Task 1 (10 points each): A. Express x[n] and h[n] as matrices. B. Find the length of x[n] and length of h[n]. x[n] = V C. What do you expect the length of the convolution of x[n] and h[n] to be? D. Manually (analytically) calculate y[n] = x[n] *h[n] using any of the preferred methods. Task 2 (20 points each): A. Write MATLAB code to find the convolution y[n] of x[n] and h[n] without using the built-in conv(x.h) function. (Tip: You will need to use nested (for loops) to accomplish this task.) B. Plot y[n], x[n], and h[n] in a single window using the subplot command. Your plots should have the proper horizontal axis definition for each function. For example, when plotting x[n], use the stem function as follows: stem([-1:5], x) since the domain of x[n] starts from-1 and ends at +5. C. Verify your results by the conv(x.h) command and plot the result. Compare it to your analytical solution in ID and your results in 2B.
Expert Answer:
Answer rating: 100% (QA)
A Express xn and hn as matrices xn 8n128n 38n148n2 28n48n5 x n 8 28 38 48 28 8 0 0 0 0 hn 38n28n15n228n35n448n6 38n8 hn 38 28 5 28 5 48 0 0 38 0 0 B F... View the full answer
Related Book For
Basic Marketing A Marketing Strategy Planning Approach
ISBN: 978-0078028984
19th edition
Authors: William D. Perreault Jr., Joseph P. Cannon, E. Jerome McCarthy
Posted Date:
Students also viewed these electrical engineering questions
-
The price p that must be set in order to sell q items is given by the equation p = -3q + 1200. (a) Find and interpret the p-intercept of the graph of the equation. (b) Find and interpret the...
-
Briefly discuss some of the service that international banks provide their customers and the marketplace.
-
Discuss some of the ways that inventory costs can be reduced in order to affect an organizations financial performance.
-
Which properties of the Clean annotation must be true for the following to compile? (Choose three.) A. The annotation must contain exactly one element. B. The annotation must contain an element named...
-
AmeriBank will soon begin offering Web banking to its customers. To guide its planning for the services to provide over the Internet, a survey will be conducted with four different age groups in...
-
Assess the role of kinship in immigration and transmigration.
-
How to submit a claim to private arbitration?
-
1. Using Yip (Figure 9.2 in Exploring Strategy), what drivers of internationalisation have encouraged the development of the IPL? 2. Considering Porters Diamond (Figure 9.3 in Exploring Strategy),...
-
Explain why synergy is most obvious when firms merge with other firms in the same line of business.
-
Annie opened a wholesale clothing business on 1 August 206. She received the following documents during August 206: Invoices August 4 From Sue, for goods, list price $1,960 less 25% trade discount 15...
-
Convert the logical constraints given below to IP constraints by introducing binary variable(s) and using a large constant M. Hint: See the discussion towards the ed of Monday's lecture (which we...
-
1. What are some of the best practices that are helping Chobani with successful product launches? 2. Are any of these relevant for Oatly 3. What are the opportunities Oatly to have better product...
-
1: What court case ruled that public funding can be allocated for bussing children to private religious schools? 2: What Supreme Court case upheld a state regulation that prohibited boys younger than...
-
One of the issues that seems to trouble students of Business Law is the concept of a unilateral versus a bilateral contract. On the surface, they seem quite clear, so many students do not spend the...
-
Assume 8 % discount rate Year 0 , 1 , 2 , 3 Cash flow - 2 5 0 0 0 , 8 0 0 0 , 1 0 , 0 0 0 , 1 2 0 0 0 What is irr? What is NPV ? What is profitability index? What is payback?
-
Young Company expected to incur $12,000 in manufacturing overhead costs and use 4,000 machine hours for the year. Actual manufacturing overhead was $9,900 and the company used 4,350 machine hours. 9....
-
1. If the one-year spot interest rate is 10% and two-year spot interest rate is 12%, calculate the one-year forward interest rate one year from today (approximately): A: 13.1% B:14% C:10.8% D: 9.7%
-
Does log 81 (2401) = log 3 (7)? Verify the claim algebraically.
-
Discuss why economies of scale in transportation might encourage a producer to include a regional merchant wholesaler in the channel of distribution for its consumer product.
-
Briefly describe a purchase you made where the customer service level had an e f fect on the product you selected or where you purchased it.
-
List your activities for the first two hours after you woke up this morning. Briefly indicate how marketing affected your activities.
-
What characteristic of a diode is used in the design of diode signal processing circuits?
-
What are the general characteristics of diode clipper circuits?
-
Describe a simple diode clipper circuit that limits the negative portion of a sinusoidal input voltage to a specified value.
Study smarter with the SolutionInn App