Borrar filtros
Borrar filtros

errorbar with multiple bar graph

1 visualización (últimos 30 días)
ASMS Mat Su
ASMS Mat Su el 29 de Nov. de 2012
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);

Respuestas (0)

Categorías

Más información sobre Errorbars en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by