I have the following code:
mean_h =[11.3579,9.8330,13.4154];
std_h = [11.3427,6.8093,9.4281];
figure
hold on
h = bar(1:3,mean_h);
errorbar(1:3,mean_h,std_h,'s');
Now I am getting 3 bars with error bars on it . I want to label each bar along x axis with separate name: like bar 1 with 4 , bar 2 with 6 and bar 3 with 8.
How can I do that in MATLAB with code?