Which of the following statements shows the result of executing the following line in the editor window? [code]size = [1 3]’ ;

size(size

Mỹ Duyên

New member
Which of the following statements shows the result of executing the following line in the editor window?
Code:
size = [1 3]’        ;

size(size)
A. error
B. 1 3
C. 3 1
D. 3 3
 
Answer: a
Explanation: Executing the command iskeyword size returns 0, i.e., size is not a MATLAB keyword. Same command should not be used as a variable in MATLAB, so there is a error message.
 

Tìm kiếm

Back
Top