Bar 10x2 double array in different colors per colom?

1 回表示 (過去 30 日間)
maxmathlab
maxmathlab 2017 年 1 月 27 日
回答済み: Image Analyst 2017 年 1 月 28 日
Is it possible to plot my 10x2 double array in different colors per colom?
e.g.
data=[2 3; 3 4; 4 5;];
x=[1;2;3];
I want to use:
bar(x,data);
but the first colom is blue and the 2nd is red for better distinction in the figure.

回答 (2 件)

KSSV
KSSV 2017 年 1 月 27 日

Image Analyst
Image Analyst 2017 年 1 月 28 日
See my attached demo.

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by