Easily create vertical or horizontal error bars.
Updated 17 Jul 2015

View License

A more adaptable, less visually-cluttered version of Matlab's built-in errorbar function. Works with vertical or horizontal error bars. See the documentation page (little light bulb icon) for examples.

Cite As

Chad Greene (2024). errbar (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Errorbars in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!


Version Published Release Notes

Updated to allow NaN inputs. Thanks for this suggestion, Ian Craig!

Removed error bar handle visibility to prevent error bars from showing up in plot legends. Thanks for this suggestion, David!