设为首页 加入收藏

TOP

一个简单的matlab图形界面程序GUI(二)
2014-11-24 03:17:23 来源: 作者: 【 】 浏览:9
Tags:一个 简单 matlab 图形 界面 程序 GUI
imno);
end
end
else
running_testfunc(handles);
end


function rdch_Callback(hObject, eventdata, handles)
% hObject handle to rdch (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
if (get(hObject, 'Value') == get(hObject, 'Max'))
set(hObject, 'String', 'show test results');
else
set(hObject,'String', 'show maps results');
end
current_no = str2double(get(handles.imgNo,'String'));
if imgno_number_check(current_no, handles) == -1
return;
else
gui_contents_update(handles, current_no);
end
guidata(hObject, handles);

function beginValue_Callback(hObject, eventdata, handles)
% hObject handle to beginValue (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
current_no = str2double(get(handles.imgNo,'String'));
if imgno_number_check(current_no, handles) == -1
return;
elseif get(handles.rdch, 'Value') == get(handles.rdch, 'Max')
gui_contents_update(handles, current_no);
end
guidata(hObject, handles);


function beginValue_CreateFcn(hObject, eventdata, handles)
% hObject handle to beginValue (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end


function endValue_Callback(hObject, eventdata, handles)
% hObject handle to endValue (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
function endValue_CreateFcn(hObject, eventdata, handles)
% hObject handle to endValue (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end


function sliderImageNo_Callback(hObject, eventdata, handles)
% hObject handle to sliderImageNo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
current = get(hObject,'Value');
current = floor(current);
set(handles.imgNo, 'String', num2str(current));
gui_contents_update(handles, current);
guidata(hObject, handles);


% --- Executes during object creation, after setting all properties.
function sliderImageNo_CreateFcn(hObject, eventdata, handles)
% hObject handle to sliderImageNo (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: slider controls usually have a light gray background.
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
set(hObject, 'Max', handles.sliderImageNo.maxValue);
set(hObject, 'Min', handles.sliderImageNo.minValue);
step = 1/(handles.sliderImageNo.maxValue - handles.sliderImageNo.minValue);
set(hObject, 'SliderStep', [step, 0.1]);
initValue = handles.slid

首页 上一页 1 2 3 4 5 6 下一页 尾页 2/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇如何用Java实现获得MySQL数据库中.. 下一篇队列的多种C语言实现

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·常用meta整理 | 菜鸟 (2025-12-25 01:21:52)
·SQL HAVING 子句:深 (2025-12-25 01:21:47)
·SQL CREATE INDEX 语 (2025-12-25 01:21:45)
·Shell 传递参数 (2025-12-25 00:50:45)
·Linux echo 命令 - (2025-12-25 00:50:43)