Errorline-Function (errlinefunc(x, y,xerr,yerr, varargin))

版本 2.1 (2.8 KB) 作者: Ingo Hermann
Errorline, Error, Errorbar, Fehler, Fehlergerade
119.0 次下载
更新时间 2020/1/8

查看许可证

This is a function, that creates min and max errorlines for a data set. As seen in the graph, the max and min error lines are depicted together with the errorbars and a box surrounding everything. Many option enable the possibility to change LineWidth, MarkerSize, Marker, Color of the single lines, LegendNames and so on:
'Box' ... Plots a box around min and max errorline (Default: off)
'BoxColor',BoxColor ... this changes the color of the box (Default: black)
'LineColor',LineColor ... changes color of error lines (Default: blue)
'LineWidth',LineWidth ... changes all line widths (Default: 1.5)
'Plot' ... Plots input x and y with errorbar xerr and yerr (Default: off)
'PlotColor',PlotColor ... changes the color of the plot (Default: black)
'MarkerSize',MarkerSize .... changes size of plot marker (Default: 10)
'Marker',Marker .... changes marker of the plot (Default: '.')
'Fit' ... draws the fit through x and y (Default: off)
'FitColor',FitColor ... colors the fit (Default: green)
'Fill',
'FillColor',FillColor
'UseStd'
'Legend' ... activates the legend for the chosen plot option
'Location',Location ... plots the legend at a certain location (Default: NorthWest)
'LegendNames',LegendNames ... is a cell array containing the names for the legend (Default: {['Data with errorbars','Fit','max error line','min
error line']})
For questions just ask me!

引用格式

Ingo Hermann (2024). Errorline-Function (errlinefunc(x, y,xerr,yerr, varargin)) (https://www.mathworks.com/matlabcentral/fileexchange/52620-errorline-function-errlinefunc-x-y-xerr-yerr-varargin), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Errorbars 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
2.1

Added the possibility, that the x-vector does not have to be sorted and the errorlines can be deactivate. 'Fill' filles the area of the errorbar box.

2.0

This is a total new version (after 4 years) with much more option like changing the LineWidth or adding a legend and changing all specific colors.

1.0.0.0