Pergunta de entrevista da empresa MathWorks

What would be called if you have a variable 'x' in your workspace in MATLAB and a function 'x' stored in the MATLAB directory when you type 'x' in the command window?

Respostas da entrevista

Sigiloso

9 de ago. de 2011

the variable will be called as it is stored in the workspace, function names are never stored in workspace!

10

Sigiloso

4 de ago. de 2011

if x is in current working directory, MATLAB will complain about the conflict and produce an error. In this case eval function comes in handy to distinguish two x's

1