errorbarlog.m

版本 1.0.0.0 (1.8 KB) 作者: Frederic Moisy
Symmetrical error bars for logarithmic Y-axis
2.5K 次下载
更新时间 2006/9/12

查看许可证

ERRORBARLOG(X,Y,E,...) plots the graph of vector X vs. vector Y with a logarithmic Y-axis, using symmetrical bars about the data points, ie: the bars are such that Y is the geometric mean (instead of arithmetic mean) of the lower and upper bars. The total length of the error bar is 2E.

ERRORBARLOG has the same syntax as the original Matlab's ERRORBAR function. The only difference is that while ERRORBAR displays the bars symmetrically for a linear Y-axis (ie: Y is the arithmetic mean of the lower and upper bars), ERRORBARLOG displays them symmetrically for a logarithmic Y-axis.

Example:

x=logspace(1,3,20);
y=5*(1 + 0.5*(rand(1,20)-0.5)).*x.^(-2);
errorbarlog(x,y,y/2,'o-');

引用格式

Frederic Moisy (2024). errorbarlog.m (https://www.mathworks.com/matlabcentral/fileexchange/8675-errorbarlog-m), MATLAB Central File Exchange. 检索来源 .

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

启发作品: superbar

Community Treasure Hunt

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

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

help text improved