sci2num

Converts a string with (possibly) an SI prefix to a number. Works in reverse of num2sci.
553 téléchargements
Mise à jour 2 mars 2010

Afficher la licence

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]

Citation pour cette source

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

Compatibilité avec les versions de MATLAB
Créé avec R2009b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Characters and Strings dans Help Center et MATLAB Answers

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.0.0.0