What is the length of the output? [code]p=conv([ones(1,150)],[ones(1,150)]);[/code]

What is the length of the output?
Code:
p=conv([ones(1,150)],[ones(1,150)]);
A. 299
B. 298
C. 300
D. Error
 
Answer: a
Explanation: The length of the output due to convolution of two discrete signals is sum of length of each signal-1. Since the length of the input vectors is 150 each, the resultant signal would have a length of 150+150-1=299 and the correct option is 299 only.
 

Tìm kiếm

Back
Top