MATLAB Answers

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

8 views (last 30 days)
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 Comment

Stephen Cobeldick
Stephen Cobeldick on 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.

Sign in to comment.

Accepted Answer

Birdman
Birdman on 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:

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Tags