plus.m

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

M
19
字号
function M = plus(M,a)
%   Add a constant to the image of an SC map (i.e., translate image).

%   Copyright (c) 1998 by Toby Driscoll.
%   $Id: plus.m 32 1998-06-29 22:26:36Z tad $

% May need to swap arguments
if isa(M,'double') & isa(a,'scmap')
  tmp = M;
  M = a;
  a = tmp;
end

if length(a)==1 & isa(a,'double')
  M.polygon = M.polygon + a;
else
  error('Addition is not defined for these operands.')
end

⌨️ 快捷键说明

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