Plotting bar graphs with different colors
古いコメントを表示
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 件のコメント
Star Strider
2021 年 11 月 22 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Legend についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
