Professional Documents
Culture Documents
Advanced Digital Design Assignment
Advanced Digital Design Assignment
Advanced Digital Design Assignment
What is the padding/truncation strategy for obtaining outputs of type valid and
same? [5 Marks]
In same convolution, central part of the full convolution is returned which has
same length as input signal. Input signal is padded with (f-1)/2 zeros, where f is
filter length.
In valid convolution, no padding is done. Signal is convolved with the other
signal and result is returned. In other words, valid convolution is part of full
convolution which is computed without padding.
c) Write your own MATLAB code to do the same convolution operation of type full
(without using the conv command). Extra credit will be awarded to those whose
code can work on inputs and filters of arbitrary length. [10 Marks]
Written in file myconv.m