What is the output of the following code? [code]conv({1 2},{3 4})[/code]

What is the output of the following code?
Code:
conv({1 2},{3 4})
A. Error
B. 6 8
C. 3 8
D. 3 10 8
 
Answer: a
Explanation: The conv() command doesn’t take cellular arrays as input and this leads to an error. The output would’ve been option 3 10 8 if the vectors, given as input, were within [].
 

Tìm kiếm

Back
Top