Changeset 4027
- Timestamp:
- 06/09/10 11:59:19 (15 years ago)
- 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 % 6 function [aint]=str2int(astr); 7 8 aint=[]; 2 9 3 10 i=1; 4 aint=[];5 11 while (i <= length(astr)) 6 12 if (astr(i) >= '0' && astr(i) <= '9')
Note:
See TracChangeset
for help on using the changeset viewer.