What is the output of the following code? [code]cconv([1 2],[0 1 0])[/code]

What is the output of the following code?
Code:
cconv([1 2],[0 1 0])
A. [0 1 2 0]
B. [1 2 0 0]
C. [1 2 0 0]
D. [0 0 1 2]
 
Answer: a
Explanation: The signal is getting circularly convolved with a n impulse function which is delayed by 1 unit in time. Hence, the output of the above code will be the original function which gets delayed by 1 unit in time.
 

Tìm kiếm

Back
Top