Problem with Plot function.

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-.')

Antworten (1)

Rik
Rik am 14 Dez. 2021

0 Stimmen

You have added ',2' twice. If you remove those, it should be a valid syntax.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 14 Dez. 2021

Kommentiert:

am 14 Dez. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by