Error bars on group bar chart

I'm trying to add +-10% error bars on each bar, getting errors with errY,y
y = [212206000000 229040000000 39312320000; 119783500000 169247500000 128418300000 ; 211838000000 706581300000 85349300000];
bar(y)
set(gca,'XTickLabel', {'300 ','350 ','400 '})
legend('C','S','T')
grid on
ylabel('N/m^{2}')
xlabel ('\mum')
colormap summer

댓글 수: 5

Star Strider
Star Strider 2015년 4월 8일
What version of MATLAB are you using?
Frank
Frank 2015년 4월 9일
2014
Star Strider
Star Strider 2015년 4월 9일
R2014a or R2014b? There’s a huge difference in how you create the error bars between the two.
Frank
Frank 2015년 4월 9일
R2014b
Star Strider
Star Strider 2015년 4월 9일
Note: see Error-bar plot for R2014a for the R2014a version of my code.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Errorbars에 대해 자세히 알아보기

질문:

2015년 4월 8일

댓글:

2015년 4월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by