一、获取代码方式

获取代码方式1:
完整代码已上传我的资源:【数据分析】基于matlab GUI kmeans聚类分组系统【含Matlab源码 510期】

获取代码方式2:
通过订阅紫极神光博客付费专栏,凭支付凭证,私信博主,可获得此代码。

备注:
订阅紫极神光博客付费专栏,可免费获得1份代码(有效期为订阅日起,三天内有效);

二、部分源代码

function varargout = k_means_gui(varargin)
% K_MEANS_GUI M-file for k_means_gui.fig
%      K_MEANS_GUI, by itself, creates a new K_MEANS_GUI or raises the existing
%      singleton*.
%
%      H = K_MEANS_GUI returns the handle to a new K_MEANS_GUI or the handle to
%      the existing singleton*.
%
%      K_MEANS_GUI('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in K_MEANS_GUI.M with the given input arguments.
%
%      K_MEANS_GUI('Property','Value',...) creates a new K_MEANS_GUI or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before k_means_gui_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to k_means_gui_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 k_means_gui% Last Modified by GUIDE v2.5 28-Jun-2008 20:30:55% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...'gui_Singleton',  gui_Singleton, ...'gui_OpeningFcn', @k_means_gui_OpeningFcn, ...'gui_OutputFcn',  @k_means_gui_OutputFcn, ...'gui_LayoutFcn',  [] , ...'gui_Callback',   []);
if nargin && ischar(varargin{1})gui_State.gui_Callback = str2func(varargin{1});
endif nargout[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
elsegui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT% --- Executes just before k_means_gui is made visible.
function k_means_gui_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output 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 k_means_gui (see VARARGIN)
global dim;
global means;
global result;
global step;
global processing;
global dist;
global intialization;
result=0;
step=0;
processing=0;
dist='SquaredEuclidean';
intialization='number  ';
set(handles.number,'String',num2str(500));
set(handles.dispersion,'String',num2str(2));
set(findobj('tag','dimension2'),'Value',1);
set(findobj('tag','dimension3'),'Value',0);
set(findobj('tag','numberofsort'),'Value',1);
set(findobj('tag','intialization'),'Value',0);
set(handles.sortedit,'String',num2str(4));
set(handles.cenini,'String','1,2;2,4;3,5;4,5;');
set(handles.iterativenumber,'String',num2str(4));
set(handles.dimension,'String','');
set(handles.distancetype,'String','');
set(handles.numbersort,'String','');
set(handles.iterativetime,'String','');
set(handles.sorttype,'String','');
dim='2D';
means='n';% Choose default command line output for k_means_gui
handles.output = hObject;% Update handles structure
guidata(hObject, handles);% UIWAIT makes k_means_gui wait for user response (see UIRESUME)
% uiwait(handles.figure1);% --- Outputs from this function are returned to the command line.
function varargout = k_means_gui_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output 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 output from handles structure
varargout{1} = handles.output;function centroidedit_Callback(hObject, eventdata, handles)
% hObject    handle to centroidedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of centroidedit as text
%        str2double(get(hObject,'String')) returns contents of centroidedit as a double% --- Executes during object creation, after setting all properties.
function centroidedit_CreateFcn(hObject, eventdata, handles)
% hObject    handle to centroidedit (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
endfunction number_Callback(hObject, eventdata, handles)
% hObject    handle to number (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of number as text
%        str2double(get(hObject,'String')) returns contents of number as a double% --- Executes during object creation, after setting all properties.
function number_CreateFcn(hObject, eventdata, handles)
% hObject    handle to number (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
endfunction dispersion_Callback(hObject, eventdata, handles)
% hObject    handle to dispersion (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of dispersion as text
%        str2double(get(hObject,'String')) returns contents of dispersion as a double% --- Executes during object creation, after setting all properties.
function dispersion_CreateFcn(hObject, eventdata, handles)
% hObject    handle to dispersion (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.
%       See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))set(hObject,'BackgroundColor','white');
end% --- Executes on button press in dimension2.
function dimension2_Callback(hObject, eventdata, handles)
% hObject    handle to dimension2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of dimension2
global dim;
if get(gcbo,'value')==1set(findobj('tag','dimension3'),'Value',0);dim='2D';
end% --- Executes on button press in dimension3.
function dimension3_Callback(hObject, eventdata, handles)
% hObject    handle to dimension3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)% Hint: get(hObject,'Value') returns toggle state of dimension3
global dim;
if get(gcbo,'value')==1set(findobj('tag','dimension2'),'Value',0);
dim='3D';
end% --- Executes on button press in generate.
function generate_Callback(hObject, eventdata, handles)
% hObject    handle to generate (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global dim;
global X;
number=str2num(get(handles.number,'String'));
dispersion=str2num(get(handles.dispersion,'String'));
if dim=='2D'

三、运行结果

四、matlab版本及参考文献

1 matlab版本
2014a

2 参考文献
[1] 由伟,刘亚秀.MATLAB数据分析教程[M].清华大学出版社,2020.
[2]王岩,隋思涟.试验设计与MATLAB数据分析[M].清华大学出版社,2012.

【数据分析】基于matlab GUI kmeans聚类分组系统【含Matlab源码 510期】相关推荐

  1. 【聚类算法】基于matlab划分法k-means聚类算法【含Matlab源码 1941期】

    一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[聚类算法]基于matlab划分法k-means聚类算法[含Matlab源码 1941期] 点击上面蓝色字体,直接付费下载,即可. 获取代码 ...

  2. 【运动学】基于matlab GUI三体运动模拟【含Matlab源码 871期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[运动学]基于matlab GUI三体运动模拟[含Matlab源码 871期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2: ...

  3. 【音乐播放】基于matlab GUI动感音乐播放【含Matlab源码 778期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[音乐播放]基于matlab GUI动感音乐播放[含Matlab源码 778期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2: ...

  4. 【雷达通信】基于matlab GUI相控阵雷达方向图【含Matlab源码 1048期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[雷达通信]基于matlab GUI相控阵雷达方向图[含Matlab源码 1048期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方 ...

  5. 【光学】基于matlab GUI维达尔之眼计算【含Matlab源码 2545期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[光学]基于matlab GUI维达尔之眼计算[含Matlab源码 2545期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2: ...

  6. 【光学】基于matlab GUI双孔干涉【含Matlab源码 2119期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[光学]基于matlab GUI双孔干涉[含Matlab源码 2119期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2: 付费 ...

  7. 【光学】基于matlab GUI双缝干涉和牛顿环【含Matlab源码 2165期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[光学]基于matlab GUI双缝干涉和牛顿环[含Matlab源码 2165期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2 ...

  8. 【数字信号】基于matlab GUI电话按键识别【含Matlab源码 2382期】

    ⛄一.获取代码方式 获取代码方式1: 完整代码已上传我的资源:[数字信号]基于matlab GUI电话按键识别[含Matlab源码 2382期] 点击上面蓝色字体,直接付费下载,即可. 获取代码方式2 ...

  9. 基于JAVA工作流流程编辑OA系统计算机毕业设计源码+数据库+lw文档+系统+部署

    基于JAVA工作流流程编辑OA系统计算机毕业设计源码+数据库+lw文档+系统+部署 基于JAVA工作流流程编辑OA系统计算机毕业设计源码+数据库+lw文档+系统+部署 本源码技术栈: 项目架构:B/S ...

  10. 基于JAVA框架的电脑测评系统计算机毕业设计源码+系统+mysql数据库+lw文档+部署

    基于JAVA框架的电脑测评系统计算机毕业设计源码+系统+mysql数据库+lw文档+部署 基于JAVA框架的电脑测评系统计算机毕业设计源码+系统+mysql数据库+lw文档+部署 本源码技术栈: 项目 ...

最新文章

  1. 请问生产成本收集器与标准成本评估有什么关联?
  2. Docker学习笔记之保存和共享镜像
  3. 4.1.1 初识文件管理
  4. PHP调用tushare,python调用tushare获取沪股通、深股通成份股数据
  5. 李开复谏言学生转学Android软件开发
  6. jface_使用JFace Viewer延迟获取模型元素
  7. 中软国际 问题一php的优缺点
  8. HashMap 精讲原理篇
  9. Docker如何更改存储库名称或重命名图像?
  10. POJ1212 HDU1650 UVA180 LA5240 Eeny Meeny【约瑟夫环】
  11. Advanced Object Creation(JS,翻译MSDN文章)
  12. java简历模板 知乎,简历模板太多不知选哪种?让面试官眼前一亮的简历!
  13. nodejs下载与安装
  14. python实现 Polar码极化过程
  15. 吴恩达—机器学习的六个核心算法
  16. html背景左右渐变,css 背景 上下渐变 左右渐变
  17. 我做过的本职之外的事情
  18. 联发科mt8516价格_一颗神U创造历史:联发科MT8516
  19. 利用数据集在水晶报表中显示图像的 .NET 程序教程
  20. 离散型随机变量的概率分布

热门文章

  1. Listview实现不同类型的布局
  2. BT 与 Magnet 的下载方式及原理
  3. Scrapy框架结合Spynner采集需进行js,ajax动态加载的网页并提取网页信息(以采集微信公众号文章列表为例)
  4. 20191226每日一句
  5. 麦子学院6.1 神经网络算法(Nerual Networks)(上) 学习笔记
  6. 《图解算法》学习笔记之递归
  7. opencv 访问图像的像素方法和算法用时的计算
  8. holotoolkit 客户端与服务器架构的建立
  9. 程序应该怎样写比较规范
  10. Atitit lucence es solr的各种query 与sql运算符的对比 目录 1.1. 等于运算 TermQuery 1 1.2. 范围运算 1 1.3. 大小运算 1 1.4. Wi