Order of magnitude of number
Versión 1.1.0.0 (1,24 KB) por
Ivar Eskerud Smith
Returns the order of magnitude of one or more numbers.
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
Citar como
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. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2012a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Matrices and Arrays en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.