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

Versión 2.1 (2,83 KB) por Ingo Hermann
Errorline, Error, Errorbar, Fehler, Fehlergerade
119 descargas
Actualizado 8 ene 2020

Ver licencia

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!

Citar como

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. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2018a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Errorbars en Help Center y MATLAB Answers.

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
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