vertex.m
来自「computation of conformal maps to polygon」· M 代码 · 共 17 行
M
17 行
function [x,y] = vertex(p)
%VERTEX Vertices of a polygon.
% VERTEX(P) returns the vertices of polygon P as a complex vector.
%
% [X,Y] = VERTEX(P) returns the vertices as two real vectors.
%
% See also POLYGON.
% Copyright 1998 by Toby Driscoll.
% $Id: vertex.m 7 1998-05-10 04:37:19Z tad $
x = p.vertex;
if nargout == 2
y = imag(x);
x = real(x);
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?