Changeset 22930


Ignore:
Timestamp:
07/13/18 14:15:12 (7 years ago)
Author:
Eric.Larour
Message:

CHG: allow option to reverse the order of segments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/exp/expread.m

    r21780 r22930  
    1 function Struct=expread(filename)
     1function Struct=expread(filename,varargin)
    22%EXPREAD - read a file exp and build a Structure
    33%
     
    1717%
    1818%   See also EXPDOC, EXPWRITEASVERTICES
     19
     20%recover options
     21options=pairoptions(varargin{:});
    1922
    2023%some checks
     
    8487%close file
    8588fclose(fid);
     89       
     90invert=getfieldvalue(options,'invert',0);
     91if invert,
     92        for i=1:length(Struct),
     93                Struct(i).x=flipud(Struct(i).x);
     94                Struct(i).y=flipud(Struct(i).y);
     95        end
     96end
Note: See TracChangeset for help on using the changeset viewer.