Change color of points

조회 수: 34 (최근 30일)
Kjetil Nøkling
Kjetil Nøkling 2013년 12월 2일
댓글: Kjetil Nøkling 2013년 12월 2일
Hi
Im trying to make a plot change its color and having a hard time.
My code looks something like this(very simplified):
while y<x
calculates x and y
plot(x,y); hold on;
end
How do I make all the points in a different color than the default blue I get.
Please help a noob out!
Thanks in advance

채택된 답변

Simon
Simon 2013년 12월 2일
Hi!
Look at the help of plot. You may give a LineSpec there.

추가 답변 (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