The output of the following code is [code]solve(‘w+z=0’)[/code]

Khánh Đoan

New member
The output of the following code is
Code:
solve(‘w+z=0’)
A. -z
B. -w
C. Error
D. No such fuction
 
Answer: a
Explanation: The default variable in MATLAB is x. Since w is nearer to x than z, the command will return a solution for w since we haven’t specified the variable who’s solution we seek. Hence, the answer is –z.
 

Tìm kiếm

Back
Top