barrerror - utility for bar plots with automatic error bars

Takes raw data and draws a bar plot for each category with error bars (using range or 95% CI)

You are now following this Submission

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 .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0