Effacer les filtres
Effacer les filtres

How to change color in plot

1 vue (au cours des 30 derniers jours)
Kong
Kong le 26 Avr 2020
Commenté : darova le 26 Avr 2020
Hello.
I want to plot a graph.
How can I use different 10 colors?
There are just 8 colors in MATLAB.
scatter(jack(:,1),jack(:,2),'r')
scatter(jump(:,1),jump(:,2),'g')
scatter(pjump(:,1),pjump(:,2),'b')
scatter(run(:,1),run(:,2),'c')
scatter(side(:,1),side(:,2),'m')
scatter(skip(:,1),skip(:,2),'y')
scatter(walk(:,1),walk(:,2),'k')
scatter(wave1(:,1),wave1(:,2),'w')
scatter(wave2(:,1),wave2(:,2),'r')
  1 commentaire
darova
darova le 26 Avr 2020

Connectez-vous pour commenter.

Réponses (1)

Imanol Isasa
Imanol Isasa le 26 Avr 2020
Hi,
You can specify any color by using RGB equivalent vectors (values from 0 to 1) such as: [0.5 0.5 0.5]

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by