sci2num

Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci.
553 descargas
Actualizado 2 mar 2010

Ver licencia

Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci. Works with cell arrays of strings also.

Examples:

num = sci2num('14.5 m') returns num = 0.0145
num = sci2num('14.5') returns num = 14.5
num = sci2num({'14.5m','85.2'}) returns num = [0.0145 85.2]

Citar como

Jason Kaeding (2024). sci2num (https://www.mathworks.com/matlabcentral/fileexchange/26828-sci2num), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2009b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Characters and Strings en Help Center y MATLAB Answers.
Agradecimientos

Inspiración para: Scientific Prefix to Number, Number to Scientific Prefix

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0