1.

What is the purpose of the line command if the plot command can be used to directly accept the arguments and generate a plot?(a) Saves complexity(b) We can refrain from using the hold function(c) There is no separate, definite purpose(d) Cannot concludeI got this question in an interview for job.This interesting question is from Plotting Multiple Curves in section MATLAB Basics of MATLAB

Answer»

Correct option is (d) Cannot conclude

For explanation: The use of the line command is primarily seen in plotting the graphs without the HOLD command. But we can put the ARGUMENTS within the plot command itself so that we don’t have to put an EXTRA line of code. This SAVES COMPLEXITY, although we have increased the length of our code.



Discussion

No Comment Found

Related InterviewSolutions