Extract numbers only

Versión 1.0.0.0 (7,13 KB) por P
extract only numbers from text file
2K Descargas
Actualizado 19 may 2016

Ver licencia

This is inspired by Peder's READTEXT
and use it to extract numbers only and output an array of only numerical value. The input file can be any numbers mixed with text, symbols,
as long as the numbers are separated from letters at least by a space.
For example, it won't work on 123abc, because computer does not know it should be 1,23 or 12,3, so it will work on 123 abc or 123,abc to extract
a numerical value 123. This is useful for machine generated file often contains some commented text along with values.

Citar como

P (2025). Extract numbers only (https://es.mathworks.com/matlabcentral/fileexchange/17770-extract-numbers-only), MATLAB Central File Exchange. Recuperado .

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

Inspirado por: readtext

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

compliant with new license