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

1 Ansicht (letzte 30 Tage)
Amit Singh
Amit Singh am 6 Jun. 2018
Kommentiert: Stephen23 am 6 Jun. 2018
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 Kommentar
Stephen23
Stephen23 am 6 Jun. 2018
" 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.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Birdman
Birdman am 6 Jun. 2018
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:

Weitere Antworten (0)

Kategorien

Mehr zu Line Plots finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by