What does 'y:' stand for in plot command?

1 回表示 (過去 30 日間)
Amit Singh
Amit Singh 2018 年 6 月 6 日
コメント済み: Stephen23 2018 年 6 月 6 日
I need to debug a piece of code and I can't understand the 'y:' attribute at the end of the line. Can someone point out what it does?
if true
plot(<a 99X1 matrix>,<a 99x1 matrix>,'y:');
end
  1 件のコメント
Stephen23
Stephen23 2018 年 6 月 6 日
" I can't understand the 'y:' attribute at the end of the line. Can someone point out what it does?"
The LineSpec is explained in the plot documentation. Reading the documentation is how you can learn how MATLAB functions work.

サインインしてコメントする。

採用された回答

Birdman
Birdman 2018 年 6 月 6 日
It means a dotted yellow line. For that, you may check the documentation of plot command. That third input argument decides the line style, marker and color:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by