What is the output if the following code? [code]if(eig(A)==eig(A’)) disp(‘True’)[/code]

Huỳnh Hiền

New member
What is the output if the following code?
Code:
if(eig(A)==eig(A’))
disp(‘True’)
A. True
B. No output
C. False
D. Error
 
Answer: d
Explanation: The syntax of the if control structure is wrong. While writing the logical expression, we cannot put it under brackets. If the brackets were removed, True would have been displayed.
 

Tìm kiếm

Back
Top