As a programming exercise, write a MATLAB function to perform a discrete convolution, y[n] = x[k]h[n...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
As a programming exercise, write a MATLAB function to perform a discrete convolution, y[n] = x[k]h[n - k] k=-∞ without using the built-in functions such as conv or filter. Note that we assume both sequences are finite, but not necessarily the same length. Ist Assignment in Signals & Systems (a) Test your algorithm using the example from question 1. (b) Try out your routine on some very long sequences, say x= randn (1, 1e4), h = rand (1, 1e5). Time your routine with timeit and compare how long it takes compared to conv. 20th Oct 2023 (c) Calculate how many arithmetic operations your rutine does as a function of input lengths. As a programming exercise, write a MATLAB function to perform a discrete convolution, y[n] = x[k]h[n - k] k=-∞ without using the built-in functions such as conv or filter. Note that we assume both sequences are finite, but not necessarily the same length. Ist Assignment in Signals & Systems (a) Test your algorithm using the example from question 1. (b) Try out your routine on some very long sequences, say x= randn (1, 1e4), h = rand (1, 1e5). Time your routine with timeit and compare how long it takes compared to conv. 20th Oct 2023 (c) Calculate how many arithmetic operations your rutine does as a function of input lengths.
Expert Answer:
Answer rating: 100% (QA)
MATLAB function to perform discrete convolution without using builtin functions Mat... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these accounting questions
-
Would you expect related-party trade to be more important in countries with more FDI? Does it matter if the FDI is horizontal or vertical? Explain your answer.
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Format only cells with values greater than maxim 4 tab and select Red color from the pallet (bottom ro Format only cells with values less than minimum and select Yellow color from the pallet (bottom...
-
The following data refer to Industrial Manufacturing Pty Ltd for the current years: Required: 1. Prepare Industrial's schedule of cost of goods manufactured for the current year. 2. Prepare...
-
A heated horizontal cylinder having a surface temperature of 93oC, diameter of 10 cm, and length of 2.0 m is exposed to Helium at 1 atm and 18oC. Calculate the heat lost by the cylinder.
-
Trane Comfort Specialists, Inc., reported the following stockholders' equity on its balance sheet at June \(30,2008\). Requirements 1. Identify the different issues of stock that Trane has...
-
Joan Chris is the Denver district manager of Stale- Mart, an old established chain of more than 100 department stores. Her district contains eight stores in the Denver metropolitan area. One of her...
-
An alpha particle is injected into a set of parallel plates beside the positive plate. The alpha accelerates from rest across a potential difference of 4.00 x 104 V. Calculate the final speed of the...
-
8.1 Create a one-way data table for profit at different levels of supplier contact in range B22:C33. Ensure that the price in cell C3 is $290 and the advertising budget in cell C5 is $35,000,000 (you...
-
1. Consider the following differential equation. q+4q-q=u a) Convert this system to state-space form. (Hint: what order is the system?) b) Find the Jordan Canonical form for the resulting A matrix....
-
Kominski Company completed and transferred 90,000 units during the current period. Based on the following information, determine the cost of the units completed during the current reporting period...
-
In C++ used nested loops to print an ascii art y using the size inputted from the user. the Y should look like @ @. @ @ @ @ @ and be built with just "@" and "
-
Which country has most benefited from opening up to free trade and globalization, seeing middle-class incomes rise and lifting over 600 million people out of poverty within the last two decades?
-
What are the coordinates of the centroid of a triangle with vertices A(3, 1), B(1, 6), and C(5, 2) 2 ?
-
A 61.0-g ball traveling at 6.3 m/s is caught by a 220-g pendulum bob. The center of mass of the pendulum / ball system reaches a maximum height of 10.4 cm (relative to the initial res position) after...
-
The bank statement reveals an ending balance of $12,165 and includes the following items not yet recorded by Affleck: bank service fees of $210, note receivable collected by the bank of $5,600, and...
-
You are standing at x = 9.0 km and your assistant is standing at x = 3.0 km. Lightning bolt 1 strikes at x = 0 km and lightning bolt 2 strikes at x = 12.0 km. You see the flash from bolt 2 at t = 10...
-
Consider the system of equations Find all of the real roots of this system of equations by hand. Write aMATLAB program that demonstrates quadratic convergence towards each of the real roots of the...
-
The centered finite difference formulas can be written in the form where k is the order of the derivative and the values of j denote locations relative to node i. For this problem, we will consider...
-
Use the problem in Example 6.2 with = 1 to illustrate mesh refinement from n = 3 to n = 7. Example 6.2 Show how the error in the finite difference approximation depends on the number of nodes n for...
-
Given two matrices $A$ and $B$ satisfying the commutation relation $$\begin{equation*} [A, B]=B \tag{6.408} \end{equation*}$$ calculate $$\begin{equation*} \exp (i \alpha A) B \exp (-i \alpha A)...
-
Show that, given two tangent vectors $V$ and $W$ of a hypersurface $\Sigma$, contraction with the projection tensor $P_{\mu u}$ reduces to a scalar product: $$\begin{equation*} P_{\mu u} V^{\mu}...
-
Show that the scalar $K$, which, according to Eq. (5.366), is constructed from the extrinsic curvature as $K=g^{\mu v} K_{\mu u}$, is equal to the covariant divergence of the normal vector field,...
Study smarter with the SolutionInn App