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