k-Wave Toolbox |
Scale a number to nearest SI unit prefix
x_sc = scaleSI(x) [x_sc scale] = scaleSI(x) [x_sc scale prefix] = scaleSI(x) [x_sc scale prefix prefix_fullname] = scaleSI(x)
scaleSI
scales the input x
to use the nearest SI unit prefix while keeping 1000 > x > 1. For example, scaleSI(0.00001)
would give x_sc = '10u'
, scale = 1e6
, prefix = 'u'
, and prefix_fullname = 'micro'
.
|
number to scale |
|
string of scaled input and prefix |
|
numeric scale factor |
|
single character scale prefix |
|
full SI name for prefix |
scaleTime
scaleFig | scaleTime |
© 2009-2014 Bradley Treeby and Ben Cox.