1.

How do you show the program of an MAT file?(a) The program should contain the echo command(b) The program should contain the showprog command(c) The program should contain the diary command(d) The program cannot be shown while running a MEX fileThis question was addressed to me during a job interview.My question is taken from Presenting Results topic in chapter Interacting with MATLAB of MATLAB

Answer»

The correct CHOICE is (d) The program cannot be shown while RUNNING a MEX FILE

Easy explanation: MEX files are not M-files. They are binary files which store the values of variables present in the WORKSPACE. So there is no QUESTION of showing the program of a MAT file.



Discussion

No Comment Found

Related InterviewSolutions