Ignore:
Timestamp:
12/11/09 07:43:43 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added linewidth option for plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/utils/Exp/expdisp.m

    r1263 r2719  
    66%   Usage:
    77%      expdisp(domainoutline,varargin)
     8%      expdisp(domainoutline,figurenumber,linestyle,linewidth,unitmultiplier)
     9%
     10%   Example:
     11%      expdisp('Domain.exp',1,'--r',2,10^3);
    812%
    913%   See also EXPMASTER, EXPDOC
    1014
    11 if nargin==1,
    12         figurenumber=1;
    13         linestyle='r-';
    14         unitmultiplier=1;
     15%check nargin
     16if ~nargin | nargin>4
     17        help expdisp
     18        error('expdisp error message: bad usage');
    1519end
    1620
    17 if nargin==2,
     21%parse input
     22if nargin<=1,
     23        figurenumber=1;
     24else
    1825        figurenumber=varargin{1};
     26end
     27if nargin<=2
    1928        linestyle='r-';
     29else
     30        linestyle=varargin{2};
     31end
     32if nargin<=3
     33        linewidth=1;
     34else
     35        linewidth=varargin{3};
     36end
     37if nargin<=4
    2038        unitmultiplier=1;
     39else
     40        unitmultiplier=varargin{4}; if isnan(unitmultiplier), unitmultiplier=1; end
    2141end
    2242
    23 if nargin==3,
    24         figurenumber=varargin{1};
    25         linestyle=varargin{2};
    26         unitmultiplier=1;
    27 end
    28 
    29 if nargin==4,
    30         figurenumber=varargin{1};
    31         linestyle=varargin{2};
    32         unitmultiplier=varargin{3};
    33         if isnan(unitmultiplier),
    34                 unitmultiplier=1;
    35         end
    36 end
    3743domain=expread(domainoutline,1);
    3844
Note: See TracChangeset for help on using the changeset viewer.