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

📄 detreeexp1.m

📁 具有图形操作界面的支持向量机多类分类实验系统.全部用Matlab实现,可以实现多种分类识别. 这是本人的毕业设计的附属程序
💻 M
📖 第 1 页 / 共 2 页
字号:
cla;
DetreeExp1_3;

global Text1 Text2 Text
t1='[x,y] = meshgrid(4:.1:8,2:.1:4.5);'
t2='x = x(:);'
t3='y = y(:);'
t4='j = classify([x y],meas(:,1:2),species);'
t5='gscatter(x,y,j);'
Text1 = strvcat(t1,t2,t3,t4,t5)
set(handles.edit2,'String',Text1);

t5='创建含有x轴,y轴的栅格图来显示这些区域,'
t6='并在栅格图栅上应用分类函数'
Text2=strvcat(t5,t6)
set(handles.edit4,'String',Text2);





% --- Executes on selection change in popupmenu2.
function popupmenu2_Callback(hObject, eventdata, handles)

global  Text5
axes(handles.axes1);
popup_sel_index1 = get(handles.popupmenu2, 'Value');
switch popup_sel_index1 
    case 1 %         axis on    ;
        Text5='axis on ';
    case 2 %         axis off ;
        Text5='axis off ';
    case 3 %         axis ij;   
       Text5='axis ij '; 
    case 4 %         axis xy;  
       Text5='axis xy';  
end
eval(Text5);
set(handles.edit2,'String',Text5);
% hObject    handle to popupmenu2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = get(hObject,'String') returns popupmenu2 contents as cell array
%        contents{get(hObject,'Value')} returns selected item from popupmenu2


% --- Executes during object creation, after setting all properties.
function popupmenu2_CreateFcn(hObject, eventdata, handles)
% hObject    handle to popupmenu2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% 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




% --------------------------------------------------------------------
function matlab_H_Callback(hObject, eventdata, handles)
% hObject    handle to matlab_H (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
helpwin();



% --------------------------------------------------------------------
function system_Callback(hObject, eventdata, handles)
% hObject    handle to system (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
system;


% --------------------------------------------------------------------
function Untitled_1_Callback(hObject, eventdata, handles)
% hObject    handle to Untitled_1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Untitled_2_Callback(hObject, eventdata, handles)
% hObject    handle to Untitled_2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Untitled_3_Callback(hObject, eventdata, handles)
% hObject    handle to Untitled_3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)




% --------------------------------------------------------------------
function Untitled_5_Callback(hObject, eventdata, handles)
% hObject    handle to Untitled_5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Risk_Callback(hObject, eventdata, handles)
% hObject    handle to Risk (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
DetreeExp5;

% --------------------------------------------------------------------
function exp2_Callback(hObject, eventdata, handles)
% hObject    handle to exp2 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
DetreeExp2;

% --------------------------------------------------------------------
function close_DE_Callback(hObject, eventdata, handles)
% hObject    handle to close_DE (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
close(gcf)




function edit5_Callback(hObject, eventdata, handles)
% hObject    handle to edit5 (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 edit5 as text
%        str2double(get(hObject,'String')) returns contents of edit5 as a double


% --- Executes during object creation, after setting all properties.
function edit5_CreateFcn(hObject, eventdata, handles)
% hObject    handle to edit5 (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




% --------------------------------------------------------------------
function ant_Callback(hObject, eventdata, handles)
% hObject    handle to ant (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
DetreeExp3;

% --------------------------------------------------------------------
function balance_Callback(hObject, eventdata, handles)
% hObject    handle to balance (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
DetreeExp4;








% --------------------------------------------------------------------
function matlab_Callback(hObject, eventdata, handles)
% hObject    handle to matlab (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
web('http://www.mathworks.com', '-browser');

% --------------------------------------------------------------------
function datamining_Callback(hObject, eventdata, handles)
% hObject    handle to datamining (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
web('http://www.dmresearch.net', '-browser');

% --------------------------------------------------------------------
function baidu_Callback(hObject, eventdata, handles)
% hObject    handle to baidu (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
web('http://www.baidu.com', '-browser');



% --------------------------------------------------------------------
function author_C_Callback(hObject, eventdata, handles)
% hObject    handle to author_C (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -