What is the output of the following code? [code]conv[1 2][/code]

Lượng Tiger

New member
What is the output of the following code?
Code:
conv[1 2]
A. Error in input
B. Error in []
C. 2
D. 0
 
Answer: b
Explanation: The first error MATLAB notices is that the input to the conv command is given within [] but not () and this is the error it’ll return. The next error is the fact that there is no ‘ , ‘ between 1 and 2 so the conv command doesn’t understand the input.
 

Tìm kiếm

Back
Top