get.m

来自「computation of conformal maps to polygon」· M 代码 · 共 27 行

M
27
字号
function varargout = get(map,varargin)
%GET    Get map parameters.
%   [VAL1,VAL2,...] = GET(F,'PROP1','PROP2',...) returns the values of the
%   map F corresponding to the requested properties. Valid properties
%   are: 
%   
%       polygon, options, prevertex, constant

% Copyright 1999-2003 by Toby Driscoll.
% $Id: get.m 236 2003-01-15 15:29:14Z driscoll $

for j = 1:length(varargin)
  switch lower(varargin{j}(1:min(3,length(varargin{j}))))
   case 'pol'
    varargout{j} = map.scmap.polygon;
   case 'opt'
    varargout{j} = map.scmap.options;
   case 'pre'
    varargout{j} = map.prevertex;
   case 'con'
    varargout{j} = map.constant;
   otherwise
    warning(sprintf('Property ''%s'' not recognized.\n',varargin{j}))
    varargout{j} = [];
  end
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?