Extract numbers only

版本 1.0.0.0 (7.1 KB) 作者: P
extract only numbers from text file
2.0K 次下载
更新时间 2016/5/19

查看许可证

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.

引用格式

P (2024). Extract numbers only (https://www.mathworks.com/matlabcentral/fileexchange/17770-extract-numbers-only), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2006b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Text Analytics Toolbox 的更多信息
致谢

参考作品: readtext

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

compliant with new license