subsref.m
来自「computation of conformal maps to polygon」· M 代码 · 共 21 行
M
21 行
function wp = subsref(f,S)
%SUBSREF Evaluate composite map by subscript notation.
% F(ZP) is a synonym for EVAL(F,ZP).
%
% See also EVAL, COMPOSITE.
% Copyright 2001 by Toby Driscoll.
% $Id: subsref.m 154 2001-07-20 13:52:46Z driscoll $
if length(S) == 1 & strcmp(S.type,'()')
wp = eval(f,S.subs{1});
elseif length(S) == 1 & strcmp(S.type,'{}')
idx = S.subs{1};
if length(idx)==1 & ~ischar(idx)
wp = f.maps{idx};
else
wp = f.maps(idx);
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?