Problem with Plot function.
Afficher commentaires plus anciens
I would like to plot two pairs of values on a single graph with line specifications and somehow im shown the error.
plot(t,y1,2,'b',t,y2,2,'k-.')
Réponses (1)
Rik
le 14 Déc 2021
0 votes
You have added ',2' twice. If you remove those, it should be a valid syntax.
1 commentaire
Anup Khadka
le 14 Déc 2021
Catégories
En savoir plus sur 2-D and 3-D Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
