How can you change the colour of the plot when using scatter function?
Afficher commentaires plus anciens
How can you change the colour of the plot when using scatter function? I have used all the predefined colours already.
Réponses (1)
Honglei Chen
le 23 Mar 2012
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
Catégories
En savoir plus sur Scatter Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!