What is the command which can be used to see the expressions within a user-defined function in MATLAB?

What is the command which can be used to see the expressions within a user-defined function in MATLAB?
A. help
B. look for
C. echo on
D. cannot be seen
 
Answer: c
Explanation: A user-defined function is a function file. The commands ‘help’ and ‘look for’ will only return the nature of in-built function. If the function file has ‘echo on’, it will display the expressions in the function file while executing. This is because function files, though they are different from script files, are inherently M-files.
 

Tìm kiếm

Back
Top