Plotting bar graphs with different colors
Mostra commenti meno recenti
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 Commento
Star Strider
il 22 Nov 2021
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Legend in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
