What is the output of the following code? [code]a=[1 2 3]; b=2; conv(a,b)[/code]

Thanh Thảo

New member
What is the output of the following code?
Code:
a=[1 2 3];
b=2;
conv(a,b)
A. 2 4 6
B. 1 2 3
C. 0 0 0
D. 2 3 1
 
Answer: a
Explanation: The process of graphical convolution will yield that the signal b only gets multiplied with an at the instants where a exists i.e at 1,2 and 3 units in time. Hence, the correct option is 2 4 6 only.
 

Tìm kiếm

Back
Top