Grouped Bar chart with errorbars on the same figure, centered in center of bars

1 view (last 30 days)
I have this code that give me a grouped bar chart and shows error bars but for both error bars in between the bars.
dist_vect =[10,50,100;510,50,100]; Avgs = [4,3,5;5,9,3]; E = [2,6;9,3]; figure hold on bar(dist_vect,Avgs) errorbar(dist_vect,Avgs,E,'.')
it always puts the bars between the groups not at the center of the respective bars columns errorbar(dist_vect, a

Answers (0)

Community Treasure Hunt

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

Start Hunting!