1.

What happens if we don’t stop the implementation of the hold function?(a) Nothing happens(b) MATLAB keeps on generating multiple plots in the same window(c) Error is generated(d) Plot function won’t workThe question was asked in an interview for internship.The doubt is from Plotting Multiple Curves topic in section MATLAB Basics of MATLAB

Answer»

Right answer is (b) MATLAB keeps on generating multiple plots in the same window

The best I can explain: Suppose we PLOT 2 graphs on the same window by USING the hold command. If we don’t stop the IMPLEMENTATION of the hold FUNCTION, MATLAB will keep on generating plots on the same window. So the user won’t get a separate plot if he wants.



Discussion

No Comment Found

Related InterviewSolutions