P = rand(50, 2);plot([P(:,1); P(1,1)], [P(:,2); P(1,2)])for i = 1:10 P = (P+[P(2:end,:); P(1,:)])/2;endfigureplot([P(:,1); P(1,1)], [P(:,2); P(1,2)])
(如果没有其他人帮你 我们再私聊)