(in MATLAB 2014a)
I would like to plot visuals to verify if a set of data complies with the requirements values.
req = [10,5,3];data=[9,6,3];
To plot the following bar chart I used:
bar(req,0.5)newXticklabel = {'label1','label2','label3'};set(gca,'XtickLabel',newXticklabel);hold onbar(data,0.25,'g')hold off
My question is: how do I change the color of one bar in red if the data is lower than the requirement value ?
Best Answer