No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.5 | 6 ratings Rate this file 24 Downloads (last 30 days) File Size: 1.33 KB File ID: #5444 Version: 1.0




09 Jul 2004 (Updated )

Errorbars for both x and y data.

| Watch this File

File Information

The function plots x and y data with errorbars for both.




x=array of xdata
y=array of ydata
xerror=array of errors for x
yerror=array of errors for y
s=string argument for plotting the datapoints, The errorbars are plotted in red and blue


Needs a figure to plot in.
errorbars are symmetrical, that means that the function plots [x-xerror x+xerror] and [y-yerror y+yerror].

x,y,xerror,yerror must all be arrays.


This file inspired Errbar, Errorbarxy, and Superbar.

MATLAB release MATLAB 6.5 (R13)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
25 Jan 2017 Antoine Naert

Worked perfectly well at the first try, thank you!

26 Nov 2013 Dominika

Useful tool, thanks.

15 Aug 2013 Mark S.

07 Feb 2013 Qi An

Qi An (view profile)

Nice work except for a minor bug.

11 Oct 2011 William Murphy

Did exactly what I needed to do for today. Thanks for the function.

15 Jun 2011 Mohsin Siddique

Great tool. very helpful. thanks for upload

Contact us