Changeset 1263


Ignore:
Timestamp:
07/08/09 11:49:14 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added unitmultiplier in expdisp

File:
1 edited

Legend:

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

    r1 r1263  
    1212        figurenumber=1;
    1313        linestyle='r-';
     14        unitmultiplier=1;
    1415end
    1516
     
    1718        figurenumber=varargin{1};
    1819        linestyle='r-';
     20        unitmultiplier=1;
    1921end
    2022
     
    2224        figurenumber=varargin{1};
    2325        linestyle=varargin{2};
     26        unitmultiplier=1;
    2427end
    2528
     29if nargin==4,
     30        figurenumber=varargin{1};
     31        linestyle=varargin{2};
     32        unitmultiplier=varargin{3};
     33        if isnan(unitmultiplier),
     34                unitmultiplier=1;
     35        end
     36end
    2637domain=expread(domainoutline,1);
    2738
    2839figure(figurenumber),hold on
    2940for i=1:length(domain),
    30         plot(domain(i).x,domain(i).y,linestyle);
     41        plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,linestyle);
    3142end
Note: See TracChangeset for help on using the changeset viewer.