112k views
1 vote
How do you plot more than one function on a graph at a time and distinguish the lines?

a) Using subplot() function
b) Using hold on and hold off commands
c) Using plot() with multiple arguments
d) Using axis() function

User Charleetm
by
8.3k points

1 Answer

2 votes

Final answer:

To plot more than one function on a graph and distinguish the lines, you can use subplot(), hold on and hold off commands, plot() with multiple arguments, or axis() function.

Step-by-step explanation:

The options for plotting more than one function on a graph and distinguishing the lines are:

  1. Using subplot() function: This function divides the graph window into a grid of subplots and allows you to plot different functions in different subplots.
  2. Using hold on and hold off commands: The hold on command allows multiple plots to be overlayed on the same graph, while the hold off command stops further overlaying.
  3. Using plot() with multiple arguments: The plot() function allows you to provide multiple x and y values as arguments, each representing a different function.
  4. Using axis() function: The axis() function sets the limits of the x and y axis, allowing you to view multiple functions within the specified range.
User Samih
by
8.5k points