errorbar with multiple bar graph

조회 수: 2 (최근 30일)
ASMS Mat Su
ASMS Mat Su 2012년 11월 29일
In the standard errobar format for is has
errorbar (x, y, L, U). L
L and U is to identify the error range in the same size. L and U is only valid for the same size with + and - value of error.
However, I would to replace the L and U value with min and max, respectively.
I'm able to plot the errorbar with min and max for only one array or one data set not for multiple (more than 2).
Any one know how to solve this?
This is my code and what I tried.
mean = [1 2 3; 4 5 NaN; 7 8 9]; min = [-0.0040 -0.0281 -0.0252; -0.0154 -0.0076 -0.0282; -0.0137 -0.0297 -0.0526]; max = [0.0470 0.0166 0.0015; 0.0015 -0.0038 0.0216; -0.0000 0.0091 0.0316 ];
figure bar(mean); colormap summer grid on hold on
x = 1:3;
y = mean;
L = min;
U = max;
errorbar(x,y,L,U);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Errorbars에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by