function display_closed_contour(countour,style,origin_style) if nargin==3 plot([countour(1,1)],[countour(1,2)],origin_style); end for n=1:size(countour,1)-1 plot([countour(n,1),countour(n+1,1)],[countour(n,2),countour(n+1,2)],style); end plot([countour(size(countour,1),1),countour(1,1)],[countour(size(countour,1),2),countour(1,2)],style); end