The script can handle integers, complex, real and currency (dollars).
It 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.
· MATLAB 7.5 or higher