Hello
I have a bar plot with 3 categories where I want to insert error bars.
I've been trying it for a long time, but I can't find the solution.
x are the categories
y the values
errorplus and errorminus the errors values.
Can someone hel me?
Thank you very much!
x=categorical({'Hip';'Knee';'Ankle'});y=[21.0416,19.5461,50;30.003601074218750,24.056737899780273,50;22.604316711425780,26.007211685180664,35];errorplus=[0.434635639190674,1.783290743827820,0;1.722714424133301,1.000267505645752,0;0.471254885196686,2.722285032272339,0];errorminus=errorplus;figure;bar(x,y);title('Range of Motion','FontSize',18)ylabel('Angle Values [°]','FontSize',18)set(gca,'linewidth',2,'FontSize',14)ylim([0 60]);
Best Answer