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 command
Answer: b
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.