File Exchange

image thumbnail

xyerrorbar

version 1.0 (1.33 KB) by

Errorbars for both x and y data.

27 Downloads

Updated

No License

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

syntax:

>xyerrorbar(x,y,xerror,yerror,s)

variables:

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

limitations:

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.

Comments and Ratings (6)

Antoine Naert

Worked perfectly well at the first try, thank you!

Dominika

Useful tool, thanks.

Mark S.

Qi An

Qi An (view profile)

Nice work except for a minor bug.

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

Great tool. very helpful. thanks for upload

MATLAB Release
MATLAB 6.5 (R13)
Acknowledgements

Inspired: errbar, errorbarxy, superbar

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

» Watch video