polyplot.m

来自「code of an ADC implementation woith matl」· M 代码 · 共 13 行

M
13
字号
function h = polyplot(p,fmt)%function polyplot(p,fmt)%Plot a polygon given by the point list p, with format fmtif nargin < 2     fmt = '-';endn = size(p,2);if p(:,n) == p(:,1)    h = plot( p(1,:), p(2,:), fmt );else    h = plot( [p(1,:) p(1,1)], [p(2,:) p(2,1)], fmt );end

⌨️ 快捷键说明

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