*I want to assign a secific color to each column ('r','g' and 'b'). I also want to show the bars as grouped. Any suggestion please? *
y=rand(9,3)
bar(y)

回答 (1 件)

Grzegorz Knor
Grzegorz Knor 2011 年 12 月 30 日

0 投票

2 件のコメント

Hassan
Hassan 2011 年 12 月 30 日
thanks for the comment. i forgot to mention i want the bars as grouped.
Hassan
Hassan 2011 年 12 月 30 日
bar(y(:,1),'r')
hold on
bar(y(:,2),'g')
hold on
bar(y(:,3),'b')

サインインしてコメントする。

カテゴリ

ヘルプ センター および File Exchange で Develop Apps Using App Designer についてさらに検索

タグ

質問済み:

2011 年 12 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by