polygon.m
来自「It s a simulation for WCDMA Radio Networ」· M 代码 · 共 25 行
M
25 行
%POLYGON Draw a polygon in a figure interactively.
% POLYGON(FIG) draws a line segment by clicking the mouse at the
% polygon points of the line segment in the figure FIG.
% A rubberband line tracks the mouse movement.
% Right mouse button click closes the polygon.
% H = POLYGON(FIG) Returns the handle to the line.
% POLYGON with no input arguments draws in the current figure.
%
%Author : Achim Wacker (AWa)
%
%Revision: 5.0.0cd Date: 17-Jul-2001
%
%needed m-files: Poly1.m
function poly = Polygon(fig)
if nargin < 1
fig = gcf;
end
Poly1(fig);
poly_tmp = get(gcf, 'UserData');
poly = poly_tmp.polygon;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?