资源简介
matlab版本在2015以下的有可能会出问题

代码片段和文件信息
function varargout = demo(varargin)
% DEMO MATLAB code for demo.fig
% DEMO by itself creates a new DEMO or raises the existing
% singleton*.
%
% H = DEMO returns the handle to a new DEMO or the handle to
% the existing singleton*.
%
% DEMO(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in DEMO.M with the given input arguments.
%
% DEMO(‘Property‘‘Value‘...) creates a new DEMO or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before demo_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to demo_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 demo
% Last Modified by GUIDE v2.5 27-Oct-2016 19:53:15
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ ‘KNN_demo‘ ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @demo_OpeningFcn ...
‘gui_OutputFcn‘ @demo_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 demo is made visible.
function demo_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 demo (see VARARGIN)
% Choose default command line output for demo
global mIsEditingIcon mIconCData
mIsEditingIcon=false;
mIconCData=nan(28283);
cols=28;
rows=28;
s = findobj(handles.uipanel1‘type‘‘surface‘);
if isempty(s)
gridColor = get(0 ‘defaultuicontrolbackgroundcolor‘) - 0.2;
gridColor(gridColor<0)=0;
s=surface(‘edgecolor‘gridColor‘parent‘handles.axes1);
end
%set xdata ydata zdata in case the rows and/or cols change
set(s‘xdata‘0:cols‘ydata‘0:rows‘zdata‘zeros(rows+1cols+1)‘cdata‘nan(28283));
handles.output = hobject;
set(handles.axes1‘drawmode‘‘fast‘‘xlim‘[-.5 28+.5]‘ylim‘[-.5 28+.5]);
axis(handles.axes1 ‘ij‘ ‘off‘);
% Update handles structure
guidata(hobject handles);
% UIWAIT makes demo wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = demo_OutputFcn(hobject e
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-27 20:48 KNN_demo\
文件 8538 2016-10-27 20:40 KNN_demo\demo.m
文件 22424 2016-10-27 20:17 KNN_demo\KNN_demo.fig
文件 294 2016-10-27 20:52 KNN_demo\readme.txt
文件 249573 2016-10-27 20:20 KNN_demo\train_Features.mat
文件 236 2016-10-27 20:20 KNN_demo\train_Labels.mat
- 上一篇:高电压技术-气隙局部放电simuli
nk仿真 - 下一篇:SLIC的源码
相关资源
- matlab版的车牌识别程序
- Face Recognition with KNN in MATLAB(12017108
- KNN算法对MNIST数据集分类
- KNN算法训练MNIST和CIFAR数据集
- mnist手写字的knn naive bayessvm实现
- 通过svm cnn knn对高光谱数据集PaviaU进行
- 基于RSSI利用KNN位置指纹法的室内定位
- LDA人脸识别MATLAB含k近邻算法
- 通过knn算法,实现WiFi室内定位在mat
- 基于MATLAB的KNN算法实现多分类.rar
- KNN分类器完整的matlab代码
- K近邻算法的MATLAB实现
- 通过matlab建立Kd-tree并进行k-NN查询
- Matlab实现(KNN)自适应谱聚类
- KNN 鸢尾花分类
- k近邻-机器学习算法
- matlab knn算法 iris
- matlab基于knn算法的adaboost实现
- KNN分类MatLAB源代码附论文
- 基于MATLAB的指纹定位算法 NN KNN WK
- 利用KNN对数据进行分类
- zw_KNN_Matlab.zip
- Matlab机器学习WKNN,加权K近邻,含有数
- K近邻算法、剪辑近邻、压缩近邻等算
- matlab代码KNN,层次聚类,C均值,最邻
- KNN算法的Matlab实现
- KNN,Matlab代码
- matlab-KNN分类器
- KNN算法代码
- SVM+SFS+KNN+SBS+LASSO+SRC算法matlab版
评论
共有 条评论