Problem with Plot function.

1 visualizzazione (ultimi 30 giorni)
Anup Khadka
Anup Khadka il 14 Dic 2021
Commentato: Anup Khadka il 14 Dic 2021
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-.')

Risposte (1)

Rik
Rik il 14 Dic 2021
You have added ',2' twice. If you remove those, it should be a valid syntax.

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by