How to produce a grouped errorbars?
Afficher commentaires plus anciens
Hi all,
I am trying to produce a grouped errorbars with the attached data.
"Mean' is 5x3 matrix with means and 'std' is the same with standard deviations of those means.
The ouput figure should look like more or less like this, with the exception I should have 5 error bars per group (not 3 like in the image), with diffrent colours for means.

More precisle what I mean, using an example of just one group
figure
subplot(3,3,1)
Group 'Sag'
errorbar(mean(1,1), std(1,1),'-s','MarkerSize',10,...
'MarkerEdgeColor','red','MarkerFaceColor','red', 'LineWidth', 1);
errorbar(mean(2,1), std(2,1),'-s','MarkerSize',10,...
'MarkerEdgeColor','green','MarkerFaceColor','green', 'LineWidth', 1);
errorbar(mean(3,1), std(3,1),'-s','MarkerSize',10,...
'MarkerEdgeColor','black','MarkerFaceColor','black', 'LineWidth', 1);
errorbar(mean(4,1), std(4,1),'-s','MarkerSize',10,...
'MarkerEdgeColor','yellow','MarkerFaceColor','yellow', 'LineWidth', 1);
errorbar(mean(5,1), std(5,1),'-s','MarkerSize',10,...
'MarkerEdgeColor','blue','MarkerFaceColor','blue', 'LineWidth', 1);
Group 'Frnt'
errorbar(mean(1,2), std(1,2),'-s','MarkerSize',10,...
'MarkerEdgeColor','red','MarkerFaceColor','red', 'LineWidth', 1);
etc
Can you help please?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Data Distribution Plots dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

