MATLAB Practice Test
MATLAB FREE MATLAB Scripting and Functions Questions and Answers
Which of the following statements about MATLAB scripts and functions is TRUE?
Select your answer
A
A script can accept input arguments and return output arguments, similar to a function.
B
A function can directly access variables defined in the base workspace without being passed as input.
C
Variables defined within a function are local to that function unless declared as global.
D
Both scripts and functions must have the same name as their `.m` file.
Hint