File Exchange

image thumbnail

SEROUND: Round value and standard error

version (1.67 KB) by Andrew Davis
Input: value and associated standard error (or deviation) Output: string of rounded value +/- error

1 Download

Updated 25 Feb 2012

View License

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

[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)


Cite As

Andrew Davis (2021). SEROUND: Round value and standard error (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Nicholas Southon

MATLAB Release Compatibility
Created with R2011a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Order of magnitude of number

Community Treasure Hunt

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

Start Hunting!