Change color of points

247 ビュー (過去 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.
  1 件のコメント
Kjetil Nøkling
Kjetil Nøkling 2013 年 12 月 2 日
Thanks :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by