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 (2026). Extract numbers only (https://jp.mathworks.com/matlabcentral/fileexchange/17770-extract-numbers-only), MATLAB Central File Exchange. に取得済み.
MATLAB リリースの互換性
作成:
R2006b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
Help Center および MATLAB Answers で Text Analytics Toolbox についてさらに検索
タグ
謝辞
ヒントを得たファイル: readtext
| バージョン | 公開済み | リリース ノート | |
|---|---|---|---|
| 1.0.0.0 | compliant with new license |
