barrerror - utility for bar plots with automatic error bars
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
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
