How can you change the colour of the plot when using scatter function?

조회 수: 1 (최근 30일)
David Dijemeni
David Dijemeni 2012년 3월 23일
How can you change the colour of the plot when using scatter function? I have used all the predefined colours already.

답변 (1개)

Honglei Chen
Honglei Chen 2012년 3월 23일
The syntax of
scatter(x,y,s,c)
supports c being a 3-ciolumn matrix where each row is a combination of RGB values, e.g.
x = 1:10;
y = 1:10;
scatter(x,y,[],rand(10,3));
see
doc scatter

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by