1.

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 seenThis question was addressed to me in quiz.My question is from Functions and Expressions topic in section Beyond the Basics of MATLAB

Answer»

The correct choice is (c) echo on

For EXPLANATION I WOULD say: 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.



Discussion

No Comment Found

Related InterviewSolutions