Borrar filtros
Borrar filtros

Could anyone help me how to plot the graph for more than one variable.

1 visualización (últimos 30 días)
code:
x=[0.1 1 2 3 4]
y=[0.05 0.06 0.06 0.06 0.06 ]
z=[0.14 0.18 0.18 0.18 0.18]
plot(x,y,'-*')
plot(x,z,'-^')
I want to plot the above code in a single graph.
when i run the code i can see only one line on the graph.
Could anyone please help me how to get both lines on the graph.

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 4 de Jul. de 2019
x=[0.1 1 2 3 4]
y=[0.05 0.06 0.06 0.06 0.06 ]
z=[0.14 0.18 0.18 0.18 0.18]
plot(x,y,'-*');
hold on;
plot(x,z,'-^')

Más respuestas (0)

Categorías

Más información sobre Directed Graphs en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by