What is the use of plot(x, y, ':') while plotting the graph?

1 次查看(过去 30 天)
x=0:pi/100:2*pi;
y=cos(x);
y2=sinx
plo(x,y2, ':')
why is ':' required?
  3 个评论
Rik
Rik 2021-8-21
Did you perhaps mean plot(x,y2,':')?
If so, read the documentation for the plot function. It will clearly explain what that does.

请先登录,再进行评论。

采纳的回答

Walter Roberson
Walter Roberson 2021-8-21
':' is dotted line joining the points.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by