You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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.
Cite As
Nils Sjöberg (2026). xyerrorbar (https://uk.mathworks.com/matlabcentral/fileexchange/5444-xyerrorbar), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: errbar, errorbarxy, superbar
General Information
- Version 1.0.0.0 (688 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
