Changeset 24995
- Timestamp:
- 06/10/20 10:04:28 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/scripts/ol.m
r24856 r24995 4 4 5 5 range=getfieldvalue(options,'<',Inf); 6 file=getfieldvalue(options,'file','runme.m'); 6 7 7 8 %Open runme.m file and read line by line 8 fid=fopen( 'runme.m','r');9 fid=fopen(file,'r'); 9 10 10 11 tline = fgets(fid); … … 15 16 lastchar = strfind(tline,')'); 16 17 lastchar = lastchar(end)-1; 18 string=tline(17:lastchar-1); 19 if strcmpi(string,'End'), 20 return; 21 end 17 22 disp(sprintf('%2i: %s',count,tline(16:lastchar))); 18 23 if count>range,
Note:
See TracChangeset
for help on using the changeset viewer.