plotting 2 graphs on the same axes

5 visualizzazioni (ultimi 30 giorni)
Anika Lee
Anika Lee il 21 Ott 2020
Risposto: KSSV il 21 Ott 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!

Risposta accettata

Star Strider
Star Strider il 21 Ott 2020
Use the hold function.

Più risposte (1)

KSSV
KSSV il 21 Ott 2020
Read about hold on.
plot(rand(1,10))
hold on
plot(rand(1,10))

Categorie

Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by