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

2 ビュー (過去 30 日間)
S Priya
S Priya 2021 年 8 月 21 日
回答済み: Walter Roberson 2021 年 8 月 21 日
x=0:pi/100:2*pi;
y=cos(x);
y2=sinx
plo(x,y2, ':')
why is ':' required?
  3 件のコメント
S Priya
S Priya 2021 年 8 月 21 日
編集済み: S Priya 2021 年 8 月 21 日
But plot(x,y2) also shows the results.
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 Center および File ExchangeMultirate Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by