⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plot_dd.m

📁 support vector clustering for Matlab tool box
💻 M
字号:
%==========================================================================
%   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -