How do I get specific points to show up on plot?

`First I plot the data given on a graph (xy) `Every 8hrs (runs in a while loop doing a calculation) I need the graph to plot the point on the graph with a different color.`

回答 (1 件)

KSSV
KSSV 2018 年 1 月 16 日

0 投票

figure
hold on
for i = 1:10
x = rand ; y = rand ;
plot(x,y,'.','markersize',50,'color',rand(1,3)) ;
end

2 件のコメント

hi  hey
hi hey 2018 年 1 月 16 日
why are you settin I=10 and x and y = rand? Could you explain what's going on
KSSV
KSSV 2018 年 1 月 16 日
編集済み: KSSV 2018 年 1 月 16 日
I have taken plots of 10 random points with a loop. I want to demonstrate how to put different colors.

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

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

タグ

質問済み:

2018 年 1 月 16 日

編集済み:

2018 年 1 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by