Find Numbers in a String

版本 1.0.0.0 (4.7 KB) 作者: Edward Zechmann
Finds flaoting point numbers in a string including: complex, real, integers, and currency (dollars).
1.3K 次下载
更新时间 2008/9/30

查看许可证

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.

引用格式

Edward Zechmann (2024). Find Numbers in a String (https://www.mathworks.com/matlabcentral/fileexchange/21618-find-numbers-in-a-string), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

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

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