How do I plot two different functions on the same plot?

What format do I need to write the code in to plot both of these functions on the same plot?

 Accepted Answer

Use
hold on
plot(...) % plot first graph
plot(...) % plot second graph
hold off

More Answers (0)

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Asked:

on 11 Mar 2023

Answered:

on 11 Mar 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!