The following will give a bar plot consisting of 2 groups of 3 bars:
xdata = [1 2];
ydata = [1 2 3; 4 5 6];
hb = bar(xdata,ydata,1);
The following will change the color of the frist bar in each group:
But I want to change the color of a single bar (e.g., the first bar in the first group). How do I achieve that?