Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Peardrop CMS 0.2.3
  • CommaFeed 0.0.1
  • Squash
  • Pick-a-Color 1.1.5
  • MVIS Security Center 1....
  • EasyZoom 1.0.3
  • jQueryGantt
  • IMDBPHP 2.1.8
  • Dynamic WordPress Form ...
  • PathFinding.js 0.4.1
  • Home > Scripts > Snippets

    Find Numbers in a String

    download button


    Downloads: 669  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Edward Zechmann | More scripts
    www.mathworks.com
    BSD License - BSD License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    Matlab
    March 21st, 2010, 04:22 GMT
    C: \ Snippets

     Read user reviews (0)  Refer to a friend  Subscribe

    Find Numbers in a String description

    This MATLAB snippet finds floating point numbers in a string

    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.

    Requirements:

    · MATLAB 7.5 or higher



    TAGS:

    parse string | find number | find pattern | parse | string | pattern

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM