sci2num
Versione 1.0.0.0 (1,51 KB) da
Jason Kaeding
Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci.
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]
Cita come
Jason Kaeding (2024). sci2num (https://www.mathworks.com/matlabcentral/fileexchange/26828-sci2num), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Creato con
R2009b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS LinuxCategorie
Scopri di più su Characters and Strings in Help Center e MATLAB Answers
Tag
Riconoscimenti
Ispirato: 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!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 |