dot2dot(X)函数

2018-04-18 10:42:44 浏览数 (1)

function dot2dot(X)

% DOT2DOT Connect the points from a 2-by-n matrix.

% Copyright 2014 Cleve Moler

% Copyright 2014 The MathWorks, Inc.

X(:,end 1) = X(:,1);

plot(X(1,:),X(2,:),'.-','markersize',18,'linewidth',2)

axis(10*[-1 1 -1 1])

axis square

0 人点赞