1.

The plotting of 3d plots and 2d plots requires separate windows. But the user has entered the hold on command. What is to be done?(a) Use the pause command(b) Use the hold off command(c) Use the close command(d) Nothing can be doneThis question was posed to me during an interview.I need to ask this question from Fine Tuning topic in portion Interacting with MATLAB of MATLAB

Answer»

The CORRECT option is (a) Use the PAUSE command

To elaborate: The hold off command is necessary to plot MULTIPLE graphs in the same window. Thus multiple 2d graphs or multiple 3d graphs can be drawn on the same window. But the pause command is used to KEEP the plot of 2d graphs and WAIT before generating 3d graphs. The close command closes any existing graphs.



Discussion

No Comment Found

Related InterviewSolutions