1.

Which command is used to clear a command window?(a) clear(b) close all(c) clc(d) clear allThe question was posed to me in an internship interview.The origin of the question is Input and Output topic in chapter MATLAB Basics of MATLAB

Answer»

The correct option is (c) clc

Easiest explanation: clc clears all INPUT and output from the COMMAND Window display and provide a “clean screen”. After using clc, you cannot use the SCROLL bar to SEE the history of functions, but you still can use the up ARROW key, ↑, to recall statements from the command history.



Discussion

No Comment Found

Related InterviewSolutions