plotting 2 graphs on the same axes

23 vues (au cours des 30 derniers jours)
Anika Lee
Anika Lee le 21 Oct 2020
Réponse apportée : KSSV le 21 Oct 2020
I have to plot an x-y equation and also a data set of x,y coordinates on the same axes, but i cant figure out how to have them on the same graph. Help!

Réponse acceptée

Star Strider
Star Strider le 21 Oct 2020
Use the hold function.

Plus de réponses (1)

KSSV
KSSV le 21 Oct 2020
Read about hold on.
plot(rand(1,10))
hold on
plot(rand(1,10))

Catégories

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

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by