Changeset 22895
- Timestamp:
- 07/03/18 07:58:03 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/trunk-jpl/scripts/ol.m ¶
r22887 r22895 1 1 2 %Open runme.m file and read line by line 2 3 fid=fopen('runme.m','r'); 3 4 … … 6 7 while ischar(tline) 7 8 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 end9 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; 13 14 end 14 15 end
Note:
See TracChangeset
for help on using the changeset viewer.