A function ______________

A function ______________
A. can be run in the command window by defining it in the window itself
B. can be run in the command window by defining it in a cpp file
C. can be run in the command window by defining it in a script file
D. can be run in the script file by defining it in the command window
 
Answer: c
Explanation: A function has to be saved as a M-file before it can be run in the command window. We will have to take MATLAB to the directory where it is saved and it will run the function from the directory itself.
 

Tìm kiếm

Back
Top