• 大小: 5KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-07-23
  • 语言: 其他
  • 标签:

资源简介

Kmeans解决聚类方法,点聚类方法,大家可以适当修改进行应用

资源截图

代码片段和文件信息

function varargout = KmeansClustering(varargin)
% KMEANSCLUSTERING M-file for KmeansClustering.fig
%      KMEANSCLUSTERING by itself creates a new KMEANSCLUSTERING or raises the existing
%      singleton*.
%
%      H = KMEANSCLUSTERING returns the handle to a new KMEANSCLUSTERING or the handle to
%      the existing singleton*.
%
%      KMEANSCLUSTERING(‘CALLBACK‘hobjecteventDatahandles...) calls the local
%      function named CALLBACK in KMEANSCLUSTERING.M with the given input arguments.
%
%      KMEANSCLUSTERING(‘Property‘‘Value‘...) creates a new KMEANSCLUSTERING or raises the
%      existing singleton*.  Starting from the left property value pairs are
%      applied to the GUI before KmeansClustering_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to KmeansClustering_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE‘s Tools menu.  Choose “GUI allows only one
%      instance to run (singleton)“.
%
% See also: GUIDE GUIDATA GUIHANDLES

% Edit the above text to modify the response to help KmeansClustering

% Last Modified by GUIDE v2.5 13-May-2011 11:37:05

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘       mfilename ...
                   ‘gui_Singleton‘  gui_Singleton ...
                   ‘gui_OpeningFcn‘ @KmeansClustering_OpeningFcn ...
                   ‘gui_OutputFcn‘  @KmeansClustering_OutputFcn ...
                   ‘gui_LayoutFcn‘  []  ...
                   ‘gui_Callback‘   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
    gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before KmeansClustering is made visible.
function KmeansClustering_OpeningFcn(hobject eventdata handles varargin)
% This function has no output1 args see OutputFcn.
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to KmeansClustering (see VARARGIN)

% Choose default command line output1 for KmeansClustering
handles.output1 = hobject;
handles.point=zeros(1002);
% Update handles structure
guidata(hobject handles);

% UIWAIT makes KmeansClustering wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = KmeansClustering_OutputFcn(hobject eventdata handles) 
% varargout  cell array for returning output1 args (see VARARGOUT);
% hobject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output1 from handles structure
varargout{1} = handles.outp

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       7853  2011-05-17 22:25  KmeansClustering.m

     文件       3257  2011-07-11 16:03  KmeansClustering.fig

----------- ---------  ---------- -----  ----

                11110                    2


评论

共有 条评论

相关资源