Could anyone help me how to plot the graph for more than one variable.
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
jaah navi
le 4 Juil 2019
Réponse apportée : KALYAN ACHARJYA
le 4 Juil 2019
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.
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 4 Juil 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,'-^')
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Directed Graphs 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!