フィルターのクリア

plotting data with different color

1 回表示 (過去 30 日間)
Mahua Nandy(Pal)
Mahua Nandy(Pal) 2012 年 9 月 2 日
I have a matrix of 120 x 3 dimension.I want to plot column 1 data with green circles, column 2 data with red circles and column 3 data with blue circles against black background.Please let me know how can I do that?

採用された回答

Sven
Sven 2012 年 9 月 2 日
編集済み: Sven 2012 年 9 月 2 日
data = rand(120,3)
figure, hold on
plot(data(:,1),'go')
plot(data(:,2),'ro')
plot(data(:,3),'bo')
set(gca,'Color','k')
If you wanted, say, filled circles with a white outline:
figure, hold on
plot(data(:,1),'wo','MarkerFaceColor','g')
plot(data(:,2),'wo','MarkerFaceColor','r')
plot(data(:,3),'wo','MarkerFaceColor','b')
set(gca,'Color','k')
  1 件のコメント
Mahua Nandy(Pal)
Mahua Nandy(Pal) 2012 年 9 月 13 日
thanks

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by