Bar 10x2 double array in different colors per colom?

2 visualizaciones (últimos 30 días)
maxmathlab
maxmathlab el 27 de En. de 2017
Respondida: Image Analyst el 28 de En. de 2017
Is it possible to plot my 10x2 double array in different colors per colom?
e.g.
data=[2 3; 3 4; 4 5;];
x=[1;2;3];
I want to use:
bar(x,data);
but the first colom is blue and the 2nd is red for better distinction in the figure.

Respuestas (2)

KSSV
KSSV el 27 de En. de 2017

Image Analyst
Image Analyst el 28 de En. de 2017
See my attached demo.

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by