Plotting bar graphs with different colors
Show older comments
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 Comment
Star Strider
on 22 Nov 2021
Accepted Answer
More Answers (0)
Categories
Find more on Legend in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!