資源簡(jiǎn)介
matlab 流形學(xué)習(xí)算法 降維算法 LLE Isomap 等算法代碼
代碼片段和文件信息
function?varargout?=?mani(varargin)
%?mani:?MANIfold?learning?demonstration?GUI
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@mani_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@mani_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??@mani_LayoutFcn?...
???????????????????‘gui_Callback‘???[]);
if?nargin?&?isstr(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?mani?is?made?visible.
function?mani_OpeningFcn(hobject?eventdata?handles?varargin)
handles.output?=?hobject;
guidata(hobject?handles);
axes(handles.maniAXES);
axis?off;
axes(handles.embedAXES);
axis?off;
handles.X?=?0;
handles.ColorVector?=?0;
handles.Y?=?0;
handles.isExample?=?0;
handles.K?=?8;
handles.d?=?2;
%handles.sigma?=?1.45;
handles.sigma?=?10.0;
handles.runTime?=?0;
handles.alpha?=?1.0;
guidata(hobject?handles);
warning?off;
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?mani_OutputFcn(hobject?eventdata?handles)
varargout{1}?=?handles.output;
%?---?Executes?during?object?creation?after?setting?all?properties.
function?ColorEdit_CreateFcn(hobject?eventdata?handles)
%?Hint:?edit?controls?usually?have?a?white?background?on?Windows.
%???????See?ISPC?and?COMPUTER.
if?ispc
????set(hobject‘BackgroundColor‘‘white‘);
else
????set(hobject‘BackgroundColor‘get(0‘defaultUicontrolBackgroundColor‘));
end
%?---?Executes?during?object?creation?after?setting?all?properties.
function?ExampleMenu_CreateFcn(hobject?eventdata?handles)
%?Hint:?popupmenu?controls?usually?have?a?white?background?on?Windows.
%???????See?ISPC?and?COMPUTER.
if?ispc
????set(hobject‘BackgroundColor‘‘white‘);
else
????set(hobject‘BackgroundColor‘get(0‘defaultUicontrolBackgroundColor‘));
end
%?---?Executes?on?selection?change?in?ExampleMenu.
function?ExampleMenu_Callback(hobject?eventdata?handles)
%?Hints:?contents?=?get(hobject‘String‘)?returns?ExampleMenu?contents?as?cell?array
%????????contents{get(hobject‘Value‘)}?returns?selected?item?from?ExampleMenu
exampleValue?=?get(handles.ExampleMenu‘Value‘);
switch?exampleValue
????case?1??%?Swiss?Roll
????????set(handles.text19‘String‘‘Z?Scaling?=‘);
????????set(handles.ParamEdit‘String‘‘1.0‘);
????case?2??%?Swiss?Hole
????????set(handles.text19‘String‘‘Z?Scaling?=‘);
????????set(handles.ParamEdit‘String‘‘1.0‘);
????case?3??%?Corner?Planes
????????set(handles.text19‘String‘‘Lift?Angle?=‘);
????????set(handles.ParamEdit‘String‘‘45.0‘);
????case?4??%?Punctured?Sphere
????????set(handles.text19‘String‘‘Z?Scaling?=‘);
????????set(
評(píng)論
共有 條評(píng)論