sci2num
Version 1.0.0.0 (1,51 KB) von
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]
Zitieren als
Jason Kaeding (2025). sci2num (https://www.mathworks.com/matlabcentral/fileexchange/26828-sci2num), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Erstellt mit
R2009b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Characters and Strings finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: 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!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |