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

조회 수: 2 (최근 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 CenterFile Exchange에서 Line Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by