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

回答(1 个)

Rik
Rik 2021-12-14

0 个投票

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

类别

帮助中心File Exchange 中查找有关 Line Plots 的更多信息

标签

提问:

2021-12-14

评论:

2021-12-14

Community Treasure Hunt

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

Start Hunting!

Translated by