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

조회 수: 6 (최근 30일)
hi  hey
hi hey 2018년 1월 16일
편집: KSSV 2018년 1월 16일
`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일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by