The Matlab example code cannot run in Matlab 2017a (Linux 64bits): https://cn.mathworks.com/help/matlab/ref/bar.html
b = bar(rand(10,1));
b.FaceColor = 'flat';
b.CData(2,:) = [.5 0 .5];
It can not color the specific bar and warns as:
No public property CData exists for class matlab.graphics.chart.primitive.Bar.
I don't know it is a specific feature merely for Matlab 2017b?
This code is only to color the specific bar. In Matlab 2012a, it can be easily done by:
bh=bar(MyStem); h=get(bh, 'children');
shading flat; set(h,'FaceVertexCData',MyColor);
I cannot understand why Matlab 2017 removes this feature.

