Changeset 2054


Ignore:
Timestamp:
08/30/09 17:24:02 (16 years ago)
Author:
Eric.Larour
Message:

qmuisdistributed: was not working at all!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/solutions/dakota/qmuisdistributed.m

    r963 r2054  
    22%QMUISDISTRIBTED - figure out if a string is a decriptor with a numerical postfix. Like thickness1, or drag10
    33
    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.
     6last=string(end);
     7
     8if ((double(last)<=57) & (double(last)>=49)),
     9        found=1;
     10else
     11        found=0;
    1012end
    11 
Note: See TracChangeset for help on using the changeset viewer.