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

2 visualizzazioni (ultimi 30 giorni)
Amit Singh
Amit Singh il 6 Giu 2018
Commentato: Stephen23 il 6 Giu 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 Commento
Stephen23
Stephen23 il 6 Giu 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.

Accedi per commentare.

Risposta accettata

Birdman
Birdman il 6 Giu 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:

Più risposte (0)

Categorie

Scopri di più su Line Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by