Changeset 2054
- Timestamp:
- 08/30/09 17:24:02 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/solutions/dakota/qmuisdistributed.m
r963 r2054 2 2 %QMUISDISTRIBTED - figure out if a string is a decriptor with a numerical postfix. Like thickness1, or drag10 3 3 4 found=0; 5 for i=1:length(string), 6 if ~isempty(str2num(string(i))), 7 found=1; 8 break; 9 end 4 5 %just take last string element, and see if it is numeric. 6 last=string(end); 7 8 if ((double(last)<=57) & (double(last)>=49)), 9 found=1; 10 else 11 found=0; 10 12 end 11
Note:
See TracChangeset
for help on using the changeset viewer.