How do you show the equation on a graph in Matlab?

To show the equation on a graph in Matlab, you can use the plot command. For example, if you wanted to plot the equation y = x^2, you would type the following command into the Matlab command window: plot(x,x.^2). This will generate a graph of the equation y = x^2.