SEROUND: Round value and standard error

版本 1.0.0.0 (1.7 KB) 作者: Andrew Davis
Input: value and associated standard error (or deviation) Output: string of rounded value +/- error
336.0 次下载
更新时间 2012/2/25

查看许可证

SEROUND: Round value and standard error

First, se is rounded to 1 significant figure. Next,
x is rounded to the same significant figure as se.

Returns a string suitable for output using fprintf or
other tools. Also returns the rounded values if
desired.

Usage:
[s, xRound, seRound] = seround(x, se, [lim])
x: value to be rounded
se: standard error of x
lim: do not use scientific notation below this
order of magnitude (optional, default=2)

See also: ROUND, FLOOR, CEIL

引用格式

Andrew Davis (2024). SEROUND: Round value and standard error (https://www.mathworks.com/matlabcentral/fileexchange/35321-seround-round-value-and-standard-error), MATLAB Central File Exchange. 检索来源 .

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

参考作品: Order of magnitude of number

Community Treasure Hunt

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

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