Question: 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

As a programming exercise, write a MATLAB function to perform a discrete convolution, y[n] = x[k]h[n - k] k=-

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.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

MATLAB function to perform discrete convolution without using builtin functions Mat... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!