barrerror - utility for bar plots with automatic error bars

Version 1.0.0.0 (2.06 KB) by Jonathan
Takes raw data and draws a bar plot for each category with error bars (using range or 95% CI)
1.5K Downloads
Updated 19 Oct 2009

View License

This script was written to provide a quick way to produce figures like the one seen above, where data containing 1 or more classes are plotted against each other across independent measurements.

Input is just a matrix of raw data with repeated measures in columns, and types in rows. For multiple classes, also accepts a cell array of these matrices

The error bars are calculated using the range of the data (asymmetric), or the 95% confidence interval (centered on mean).

Cite As

Jonathan (2026). barrerror - utility for bar plots with automatic error bars (https://www.mathworks.com/matlabcentral/fileexchange/25613-barrerror-utility-for-bar-plots-with-automatic-error-bars), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Line Plots in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0