Changeset 22895


Ignore:
Timestamp:
07/03/18 07:58:03 (7 years ago)
Author:
Mathieu Morlighem
Message:

CHG: improved ol

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/trunk-jpl/scripts/ol.m

    r22887 r22895  
    11
     2%Open runme.m file and read line by line
    23fid=fopen('runme.m','r');
    34
     
    67while ischar(tline)
    78        tline = fgets(fid);
    8         if length(tline)>15,
    9                 if strcmpi(tline(1:15),'if perform(org,'),
    10                         disp(sprintf('%i: %s',count,tline(17:end-4)));
    11                         count=count+1;
    12                 end
     9        if strncmpi(tline,'if perform(org,',14),
     10                lastchar = strfind(tline,')');
     11                lastchar = lastchar(end)-1;
     12                disp(sprintf('%2i: %s',count,tline(16:lastchar)));
     13                count=count+1;
    1314        end
    1415end
Note: See TracChangeset for help on using the changeset viewer.