Changeset 21780
- Timestamp:
- 07/13/17 14:15:05 (8 years ago)
- Location:
- issm/trunk-jpl/src/m/exp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/exp/expcoarsen.m
r14059 r21780 1 function expcoarsen(newfile, oldfile,resolution)1 function expcoarsen(newfile,varargin) 2 2 %EXPCOARSEN - coarsen an exp contour 3 3 % … … 7 7 % Usage: 8 8 % expcoarsen(newfile,oldfile,resolution) 9 % expcoarsen(file,resolution) 9 10 % 10 11 % Example: … … 12 13 13 14 %Some checks 14 if nargin~=3 | nargout 15 error('expcoarsen usage: expcoarsen(newfile,oldfile,resolution)') 16 elseif ~exist(oldfile) 17 error(['expcut error message: the file ' oldfile ' does not exist']) 15 if nargin==2, 16 resolution = varargin{1}; 17 oldfile= newfile; 18 elseif nargin==3, 19 oldfile = varargin{1}; 20 resolution = varargin{2}; 21 else 22 error('bad usage'); 23 end 24 25 if ~exist(oldfile) 26 error(['expcoarsen error message: file ''' oldfile ''' does not exist']) 18 27 elseif exist(newfile), 19 28 choice=input(['A file ' newfile ' already exists, do you want to modify it? (y/n)'],'s'); -
issm/trunk-jpl/src/m/exp/expread.m
r13730 r21780 65 65 Struct(count).x=A(1,:)'; 66 66 Struct(count).y=A(2,:)'; 67 if any(isnan(A)) 68 warning('NaNs found in coordinates, note that some tools like exptool will not work properly with NaNs'); 69 end 67 70 68 71 if(Struct(count).nods~=length(Struct(count).x))error(['Profile ' num2str(count) ' reports incorrect length']); end; … … 78 81 end 79 82 83 80 84 %close file 81 85 fclose(fid); -
issm/trunk-jpl/src/m/exp/exptool.m
r20663 r21780 99 99 100 100 %get current figure 101 nofigurecopy=getfieldvalue(options,'nofigurecopy', 1);101 nofigurecopy=getfieldvalue(options,'nofigurecopy',0); 102 102 if ~nofigurecopy, 103 103 if ~isempty(get(0,'children')),%if there is already a figure (return the number of opened figures)
Note:
See TracChangeset
for help on using the changeset viewer.