Plotting bar graphs with different colors
Mostrar comentarios más antiguos
I have a 2D array A with 10 rows and 2 columns. In the first coloum data is in sorted form and in the 2nd column indexed are stored from 1 to 10 in random order.
0 1
55.49483 6
56.04042 2
56.13312 3
57.2423 7
57.26352 4
60.63905 8
63.84518 10
64.23292 9
66.96066 5
I want to plot a bar graph in a way if A(:,2)== rang from 1 to 5 then bar graph of red color else blue color.
1 comentario
Star Strider
el 22 de Nov. de 2021
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Legend en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
