Order of magnitude of number

Returns the order of magnitude of one or more numbers.
2,5K téléchargements
Mise à jour 18 juin 2012

Afficher la licence

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

Citation pour cette source

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. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2012a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et MATLAB Answers
Remerciements

Inspiré par : logb

A inspiré : 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!
Version Publié le Notes de version
1.1.0.0

Added possibility to specify base.

1.0.0.0