Changeset 27671


Ignore:
Timestamp:
03/30/23 19:24:32 (2 years ago)
Author:
Eric.Larour
Message:

CHG: variations.

Location:
issm/trunk-jpl/scripts
Files:
1 added
1 edited

Legend:

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

    r24995 r27671  
    33        options=pairoptions(varargin{:});
    44
    5         range=getfieldvalue(options,'<',Inf);
     5        %recover steps in calling workspace:  will be used to highlight current step.
     6        steps= evalin('base', 'steps');
     7       
     8        mmin=getfieldvalue(options,'>',1);
     9        mmax=getfieldvalue(options,'<',Inf);
     10
    611        file=getfieldvalue(options,'file','runme.m');
    712
     
    2025                                return;
    2126                        end
    22                         disp(sprintf('%2i: %s',count,tline(16:lastchar)));
    23                         if count>range,
     27                        if ismember(count,steps),
     28                                disp(sprintf('%2i: *%s',count,tline(17:lastchar-1)));
     29                        else
     30                                if count>=mmin & count <= mmax,
     31                                        disp(sprintf('%2i:  %s',count,tline(17:lastchar-1)));
     32                                else
     33                                        %do nothing.
     34                                end
     35                        end
     36                        if count>mmax,
    2437                                break;
    2538                        end
Note: See TracChangeset for help on using the changeset viewer.