plotting 2 graphs on the same axes

15 visualizaciones (últimos 30 días)
Anika Lee
Anika Lee el 21 de Oct. de 2020
Respondida: KSSV el 21 de Oct. de 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!

Respuesta aceptada

Star Strider
Star Strider el 21 de Oct. de 2020
Use the hold function.

Más respuestas (1)

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

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by