1.

The student receives an error while trying to plot multiple graphs using the hold command. What is there error if there is no a syntactical error?(a) Cannot be determined(b) The plot function is not defined with a constant variable range(c) There is no hold command(d) There has to be a syntactical error onlyThe question was asked in semester exam.The origin of the question is Plotting Multiple Curves in section MATLAB Basics of MATLAB

Answer»

Correct answer is (b) The PLOT function is not defined with a constant variable RANGE

For explanation: If the student is USING the hold command, the student has to keep the SCALE and range of one axis same. Then he can plot the functions of other dependent variables, which depend on the independent variable range previously defined. If the plot function contains an ENTIRELY different set of arguments, MATLAB will produce an error.



Discussion

No Comment Found

Related InterviewSolutions