Changeset 4027


Ignore:
Timestamp:
06/09/10 11:59:19 (15 years ago)
Author:
jschierm
Message:

str2int.m: Added some documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Array/str2int.m

    r4026 r4027  
    1 function aint=str2int(astr);
     1%
     2%  function to find and read the first integer in a character string.
     3%
     4%  function [aint]=str2int(astr)
     5%
     6function [aint]=str2int(astr);
     7
     8aint=[];
    29
    310i=1;
    4 aint=[];
    511while (i <= length(astr))
    612        if (astr(i) >= '0' && astr(i) <= '9')
Note: See TracChangeset for help on using the changeset viewer.