Order of magnitude of number

Returns the order of magnitude of one or more numbers.
2.5K 次下载
更新时间 2012/6/18

查看许可证

Returns the order of magnitude of one or more numbers. Works on arrays. You can also specify the number base.

%Ex:
order( 1.2e-5 ) %returns -5
order(1) = 0
order( 1.12344e8 ) %returns 8
%Specify base 2:
order(1.2*2^5,2) %returns 5

引用格式

Ivar Eskerud Smith (2024). Order of magnitude of number (https://www.mathworks.com/matlabcentral/fileexchange/28559-order-of-magnitude-of-number), MATLAB Central File Exchange. 检索来源 .

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

参考作品: logb

启发作品: SEROUND: Round value and standard error

Community Treasure Hunt

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

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

Added possibility to specify base.

1.0.0.0