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

21 vues (au cours des 30 derniers jours)
John
John le 11 Mar 2023
What format do I need to write the code in to plot both of these functions on the same plot?

Réponse acceptée

Torsten
Torsten le 11 Mar 2023
Use
hold on
plot(...) % plot first graph
plot(...) % plot second graph
hold off

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by