plot_dd.m
来自「support vector clustering for Matlab too」· M 代码 · 共 28 行
M
28 行
%==========================================================================
% Create Delaunay diagram and plotting
%==========================================================================
% Example
%
% [T]=plot_dd(x) % x: N x dim
%
%==========================================================================
% January 13, 2009
% Implemented by Daewon Lee
% WWW: http://sites.google.com/site/daewonlee/
%==========================================================================
function [T]=plot_dd(x)
T=delaunayn(x);
[num dummy]=size(T);
if size(x,2)==2
figure;
hold on
for i=1:num
temp=[x(T(i,1),:);x(T(i,2),:);x(T(i,3),:);x(T(i,1),:)];
plot(temp(:,1),temp(:,2));
end
title('Proximity graph by Delaunay diagram (DD)');
hold off
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?