Changeset 11955
- Timestamp:
- 04/10/12 10:35:15 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/utils/Exp/readwrite/expread.m
r8744 r11955 1 function Struct=expread(filename ,whole);1 function Struct=expread(filename); 2 2 %EXPREAD - read a file exp and build a Structure 3 3 % … … 10 10 % 11 11 % Usage: 12 % Struct=expread(filename ,whole)12 % Struct=expread(filename) 13 13 % 14 14 % Example: 15 15 % Struct=expread('domainoutline.exp') 16 % Struct=expread('domainoutline.exp' ,1)16 % Struct=expread('domainoutline.exp') 17 17 % 18 18 % See also EXPDOC, EXPWRITEASVERTICES … … 21 21 if ~exist(filename), 22 22 error(['expread error message: file ' filename ' not found!']); 23 end24 if nargin<2,25 whole=1;26 23 end 27 24 … … 76 73 (Struct(count).y(end) == Struct(count).y(1)) 77 74 Struct(count).closed=true; 78 %skip last coordinate if whole=0,79 if whole==080 Struct(count).nods=Struct(count).nods-1;81 Struct(count).x =Struct(count).x(1:end-1,1);82 Struct(count).y =Struct(count).y(1:end-1,1);83 end84 75 else 85 76 Struct(count).closed=false; 86 77 end 87 88 78 end 89 79
Note:
See TracChangeset
for help on using the changeset viewer.