What is the output of the following code? [code]system(cmd)[/code]

What is the output of the following code?
Code:
system(cmd)
A. Starts Command Prompt
B. Starts Command Prompt in MATLAB
C. Starts Command Prompt in a separate window
D. Error
 
Answer: d
Explanation: The input to the system command is a command which can be run through the OS. But the input int the above code isn’t given within ‘’. It should be within ‘’. Hence, this leads to an error.
 

Tìm kiếm

Back
Top