MATLAB: How to make one plot comparing two solutions of of a function

MATLABmatlab functionplot

How to make one plot comparing two solutions?

Best Answer

One of several ways...
  1. Plot one solution.
  2. Issue the command: hold on
  3. Plot the second solution
The second plot will now appear on the previous figure.