Changeset 2719
- Timestamp:
- 12/11/09 07:43:43 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/utils/Exp/expdisp.m
r1263 r2719 6 6 % Usage: 7 7 % expdisp(domainoutline,varargin) 8 % expdisp(domainoutline,figurenumber,linestyle,linewidth,unitmultiplier) 9 % 10 % Example: 11 % expdisp('Domain.exp',1,'--r',2,10^3); 8 12 % 9 13 % See also EXPMASTER, EXPDOC 10 14 11 if nargin==1, 12 figurenumber=1; 13 linestyle='r-';14 unitmultiplier=1;15 %check nargin 16 if ~nargin | nargin>4 17 help expdisp 18 error('expdisp error message: bad usage'); 15 19 end 16 20 17 if nargin==2, 21 %parse input 22 if nargin<=1, 23 figurenumber=1; 24 else 18 25 figurenumber=varargin{1}; 26 end 27 if nargin<=2 19 28 linestyle='r-'; 29 else 30 linestyle=varargin{2}; 31 end 32 if nargin<=3 33 linewidth=1; 34 else 35 linewidth=varargin{3}; 36 end 37 if nargin<=4 20 38 unitmultiplier=1; 39 else 40 unitmultiplier=varargin{4}; if isnan(unitmultiplier), unitmultiplier=1; end 21 41 end 22 42 23 if nargin==3,24 figurenumber=varargin{1};25 linestyle=varargin{2};26 unitmultiplier=1;27 end28 29 if nargin==4,30 figurenumber=varargin{1};31 linestyle=varargin{2};32 unitmultiplier=varargin{3};33 if isnan(unitmultiplier),34 unitmultiplier=1;35 end36 end37 43 domain=expread(domainoutline,1); 38 44
Note:
See TracChangeset
for help on using the changeset viewer.