I want to have different colors bars also I want to show the error bars from highest to lowest like what I have in the code. Then, I want to have the first two columns bar together then space between the other two columns bars. Please it is urgent

2 vues (au cours des 30 derniers jours)
x = 1:4
data=([0.2022;0.2020; 0.2128; 0.2125])';
errhigh= [0.0044 0.0055 0.0035 0.0049]; % lower error bar position
errlow = [0.0030 0.0094 0.0045 0.0029]; % upper error bar position
% % draw error bar from minimum value to maximum value
bar (x,data)
hold on
%
er = errorbar(x,data,errlow,errhigh);
%
er.Color = [0 0 0 ];
er.LineStyle = 'none';
hold off

Réponses (1)

Cris LaPierre
Cris LaPierre le 4 Mai 2021
Perhaps you would be interested in the example displaying groups of bars.

Catégories

En savoir plus sur Discrete Data Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by