What is the output of the following code? [code]det({1 2 3; 4 5 6; 7 8 9})[/code]

What is the output of the following code?
Code:
det({1 2 3; 4 5 6; 7 8 9})
A. 0
B. Syntactical Error
C. A very small value
D. Cannot be determined
 
Answer: b
Explanation: The input to the det command cannot be a cellular array. Since we have given the vector within {}, it results in an error. The output would have been very small value if the mtrix was given within [].
 

Tìm kiếm

Back
Top