Find Numbers in a String

Finds flaoting point numbers in a string including: complex, real, integers, and currency (dollars).
1,3K téléchargements
Mise à jour 30 sept. 2008

Afficher la licence

find_nums finds all of the numbers in a string and returns an numeric array, nums, with all of the numbers that were found. By specifying flag as 1,2,3 or 4, the program will find: complex numbers, real numbers, integers, or currency (dollars) respectively.

Also a cell array of the matched string is returned. The cell array maybe useful for reprinting numbers in a new table, using a different parsing method to extract the numbers, or reformatting such as removing spaces.

Citation pour cette source

Edward Zechmann (2024). Find Numbers in a String (https://www.mathworks.com/matlabcentral/fileexchange/21618-find-numbers-in-a-string), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2007b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur String Parsing 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