function varargout = urbmicro(varargin)
% URBMICRO M-file for urbmicro.fig
% URBMICRO, by itself, creates a new URBMICRO or raises the existing
% singleton*.
%
% H = URBMICRO returns the handle to a new URBMICRO or the handle to
% the existing singleton*.
%
% URBMICRO('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in URBMICRO.M with the given input arguments.
%
% URBMICRO('Property','Value',...) creates a new URBMICRO or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before urbmicro_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to urbmicro_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
% Copyright 2002-2003 The MathWorks, Inc.
% Edit the above txtS to modify the response to help urbmicro
% Last Modified by GUIDE v2.5 10-Jul-2008 21:35:23
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @urbmicro_OpeningFcn, ...
'gui_OutputFcn', @urbmicro_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 urbmicro is made visible.
function urbmicro_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 urbmicro (see VARARGIN)
% Choose default command line output for urbmicro
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes urbmicro wait for user response (see UIRESUME)
% uiwait(handles.figure1);
data=varargin{1};
data=cell2mat(data);
handles.fixed=data(1);
handles.los=data(2);
handles.plotit=data(3);
guidata(hObject,handles);
if data(3)==0
set(handles.txtpath,'Enable','off');
set(handles.txtmonBS,'Enable','off');
set(handles.txtmonMS,'Enable','off');
elseif data(3)==1
set(handles.txtpath,'Enable','on');
set(handles.txtmonBS,'Enable','on');
set(handles.txtmonMS,'Enable','on');
end
% --- Outputs from this function are returned to the command line.
function varargout = urbmicro_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;
% --- Executes on button press in radiobutton7.
function radiobutton7_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton7 (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 radiobutton7
% --- Executes on button press in radiobutton8.
function radiobutton8_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton8 (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 radiobutton8
% --- Executes on button press in radiobutton9.
function radiobutton9_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton9 (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 radiobutton9
% --- Executes on button press in radiobutton8.
function radiobutton10_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton8 (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 radiobutton8
% --- Executes on button press in radiobutton7.
function radiobutto7_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton7 (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 radiobutton7
% --- Executes on button press in radiobutton12.
function radiobutton12_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton12 (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 radiobutton12
function txtS_Callback(hObject, eventdata, handles)
% hObject handle to txtS (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 txtS as txtS
% str2double(get(hObject,'String')) returns contents of txtS as a
% double
% --- Executes during object creation, after setting all properties.
function txtS_CreateFcn(hObject, eventdata, handles)
% hObject handle to txtS (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 txtdBS_Callback(hObject, eventdata, handles)
% hObject handle to txtdBS (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 txtdBS as txtS
% str2double(get(hObject,'String')) returns contents of txtdBS as a double
% --- Executes during object creation, after setting all properties.
function txtdBS_CreateFcn(hObject, eventdata, handles)
% hObject handle to txtdBS (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 txtdMS_Callback(hObject, eventdata, handles)
% hObject handle to txtdMS (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 txtdMS as txtS
% str2double(get(hObject,'String')) returns contents of txtdMS as a double
% --- Executes during object creation, after setting all properties.
function txtdMS_CreateFcn(hObject, eventdata, handles)
% hObject handle to txtdMS (see GCBO)
% ev
MIMS.rar_Windows编程_mimo
版权申诉
155 浏览量
2022-09-21
00:46:51
上传
评论
收藏 383KB RAR 举报
刘良运
- 粉丝: 70
- 资源: 1万+
最新资源
- 基于PHP+swoole实现的微信机器人,依赖vbot和微信网页版的功能,帮助管理微信群/聊天/踢人等+源码+开发文档+运行教程
- com.xunmeng.pinduoduo_Release_cd290ca9_ARM64.apk
- 2788727d-25a0-41b2-b6b4-265d193edb95.doc
- 基于AVR单片机的伺服电机系统研究
- Lab-Electronic Craft Practicum-2-Simulation of a Single Tube Com
- 贪吃蛇基于TypeScript
- CS-CP1-2C3WF固件
- 软件测试测试用例设计方法大全
- 计算机与网络基础知识要点学习
- 移动通信(RC-YDTX-III)实验指导书
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈