1.

How can we close all graphs in MATLAB?(a) Using the close command(b) Using the clear all command(c) Using the close all command(d) Using the clear commandThis question was addressed to me during an interview for a job.This intriguing question comes from Suppressing Output topic in division Beyond the Basics of MATLAB

Answer»

The correct choice is (b) Using the clear all command

For explanation: The in-built command to CLOSE the windows containing graphs is ‘close all’. This command should be placed at the beginning of a function which creates graphs so that future commands do not AFFECT the GRAPH GENERATED every TIME the function is called.



Discussion

No Comment Found

Related InterviewSolutions