📄 building_mode_export.m
字号:
'BackgroundColor',[1 1 1],...
'Callback','building_mode_export(''p_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[131.4 28.6153846153846 15 1.61538461538462],...
'String','',...
'Style','edit',...
'CreateFcn','building_mode_export(''p_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','p');
h10 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','building_mode_export(''q_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[131.5 26 15 1.61538461538462],...
'String','',...
'Style','edit',...
'CreateFcn','building_mode_export(''q_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','q');
h11 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[113.4 30.7692307692308 14.4 1.61538461538462],...
'String','收发机间距',...
'Style','text',...
'Tag','distance');
h12 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[113.4 28.4615384615385 15.6 1.23076923076923],...
'String','塑料间隔数',...
'Style','text',...
'Tag','position');
h13 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[112.2 26.2307692307692 15.6 1.23076923076923],...
'String','混凝土间隔数',...
'Style','text',...
'Tag','concrete');
h14 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','building_mode_export(''A1_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[129.8 23 6 1.7],...
'String','',...
'Style','edit',...
'CreateFcn','building_mode_export(''A1_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','A1');
h15 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[114.6 23.4615384615385 12.4 1.23076923076923],...
'String','楼层A坐标',...
'Style','text',...
'Tag','axisA');
h16 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[114.6 20.7692307692308 12.8 1.23076923076923],...
'String','楼层B坐标',...
'Style','text',...
'Tag','axisB');
h17 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','building_mode_export(''B1_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[129.8 21 6 1.7],...
'String','',...
'Style','edit',...
'CreateFcn','building_mode_export(''B1_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','B1');
h18 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[125.8 14.3846153846154 14.2 1.61538461538462],...
'String',{ '仿真结果' '' },...
'Style','text',...
'Tag','text12');
h19 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','building_mode_export(''result_Callback'',gcbo,[],guidata(gcbo))',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[124.8 11.8461538461538 17.8 1.76923076923077],...
'String','',...
'Style','edit',...
'CreateFcn','building_mode_export(''result_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','result');
h20 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'Callback','building_mode_export(''start_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[126.8 5.84615384615385 13.2 1.76923076923077],...
'String','START',...
'Tag','start');
h21 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','building_mode_export(''A2_Callback'',gcbo,[],guidata(gcbo))',...
'CData',zeros(1,0),...
'ListboxTop',0,...
'Position',[141 23 6 1.7],...
'String','',...
'Style','edit',...
'CreateFcn','building_mode_export(''A2_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','A2',...
'UserData',zeros(1,0));
h22 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'BackgroundColor',[1 1 1],...
'Callback','building_mode_export(''B2_Callback'',gcbo,[],guidata(gcbo))',...
'ListboxTop',0,...
'Position',[141 21 6 1.7],...
'Style','edit',...
'CreateFcn','building_mode_export(''B2_CreateFcn'',gcbo,[],guidata(gcbo))',...
'Tag','B2');
h23 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[147.4 23 5 1.7],...
'String','间',...
'Style','text',...
'Tag','text13');
h24 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[147.8 21.2307692307692 5 1.69230769230769],...
'String','间',...
'Style','text',...
'Tag','text14');
h25 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[136 23 5 1.69230769230769],...
'String','楼',...
'Style','text',...
'Tag','text15');
h26 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[136 21 5 1.69230769230769],...
'String','楼',...
'Style','text',...
'Tag','text16');
h27 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[147.2 30.3846153846154 5 1.69230769230769],...
'String','m',...
'Style','text',...
'Tag','text18');
h28 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[119.8 2 32 1.69230769230769],...
'String','036605班07号 赵洪掖 ',...
'Style','text',...
'Tag','text19');
h29 = uicontrol(...
'Parent',h1,...
'Units','characters',...
'FontName','宋体',...
'FontSize',10,...
'ListboxTop',0,...
'Position',[79.8 0.25 45 1.69230769230769],...
'String','注:绿色为软隔板,蓝色为混泥土隔板',...
'Style','text',...
'Tag','text21');
hsingleton = h1;
% --- Handles default GUIDE GUI creation and callback dispatchfunction varargout = gui_mainfcn(gui_State, varargin)
% GUI_MAINFCN provides these command line APIs for dealing with GUIs
%
% BUILDING_MODE_EXPORT, by itself, creates a new BUILDING_MODE_EXPORT or raises the existing
% singleton*.
%
% H = BUILDING_MODE_EXPORT returns the handle to a new BUILDING_MODE_EXPORT or the handle to
% the existing singleton*.
%
% BUILDING_MODE_EXPORT('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in BUILDING_MODE_EXPORT.M with the given input arguments.
%
% BUILDING_MODE_EXPORT('Property','Value',...) creates a new BUILDING_MODE_EXPORT or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before untitled_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to untitled_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
% Copyright 1984-2002 The MathWorks, Inc.
% $Revision: 1.4 $ $Date: 2002/05/31 21:44:31 $
gui_StateFields = {'gui_Name'
'gui_Singleton'
'gui_OpeningFcn'
'gui_OutputFcn'
'gui_LayoutFcn'
'gui_Callback'};
gui_Mfile = '';
for i=1:length(gui_StateFields)
if ~isfield(gui_State, gui_StateFields{i})
error('Could not find field %s in the gui_State struct in GUI M-file %s', gui_StateFields{i}, gui_Mfile);
elseif isequal(gui_StateFields{i}, 'gui_Name')
gui_Mfile = [getfield(gui_State, gui_StateFields{i}), '.m'];
end
end
numargin = length(varargin);
if numargin == 0
% BUILDING_MODE_EXPORT
% create the GUI
gui_Create = 1;
elseif numargin > 3 & ischar(varargin{1}) & ishandle(varargin{2})
% BUILDING_MODE_EXPORT('CALLBACK',hObject,eventData,handles,...)
gui_Create = 0;
else
% BUILDING_MODE_EXPORT(...)
% create the GUI and hand varargin to the openingfcn
gui_Create = 1;
end
if gui_Create == 0
varargin{1} = gui_State.gui_Callback;
if nargout
[varargout{1:nargout}] = feval(varargin{:});
else
feval(varargin{:});
end
else
if gui_State.gui_Singleton
gui_SingletonOpt = 'reuse';
else
gui_SingletonOpt = 'new';
end
% Open fig file with stored settings. Note: This executes all component
% specific CreateFunctions with an empty HANDLES structure.
% Do feval on layout code in m-file if it exists
if ~isempty(gui_State.gui_LayoutFcn)
gui_hFigure = feval(gui_State.gui_LayoutFcn, gui_SingletonOpt);
else
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
% If the figure has InGUIInitialization it was not completely created
% on the last pass. Delete this handle and try again.
if isappdata(gui_hFigure, 'InGUIInitialization')
delete(gui_hFigure);
gui_hFigure = local_openfig(gui_State.gui_Name, gui_SingletonOpt);
end
end
% Set flag to indicate starting GUI initialization
setappdata(gui_hFigure,'InGUIInitialization',1);
% Fetch GUIDE Application options
gui_Options = getappdata(gui_hFigure,'GUIDEOptions');
if ~isappdata(gui_hFigure,'GUIOnScreen')
% Adjust background color
if gui_Options.syscolorfig
set(gui_hFigure,'Color', get(0,'DefaultUicontrolBackgroundColor'));
end
% Generate HANDLES structure and store with GUIDATA
guidata(gui_hFigure, guihandles(gui_hFigure));
end
% If user specified 'Visible','off' in p/v pairs, don't make the figure
% visible.
gui_MakeVisible = 1;
for ind=1:2:length(varargin)
if length(varargin) == ind
break;
end
len1 = min(length('visible'),length(varargin{ind}));
len2 = min(length('off'),length(varargin{ind+1}));
if ischar(varargin{ind}) & ischar(varargin{ind+1}) & ...
strncmpi(varargin{ind},'visible',len1) & len2 > 1
if strncmpi(varargin{ind+1},'off',len2)
gui_MakeVisible = 0;
elseif strncmpi(varargin{ind+1},'on',len2)
gui_MakeVisible = 1;
end
end
end
% Check for figure param value pairs
for index=1:2:length(varargin)
if length(varargin) == index
break;
end
try, set(gui_hFigure, varargin{index}, varargin{index+1}), catch, break, end
end
% If handle visibility is set to 'callback', turn it on until finished
% with OpeningFcn
gui_HandleVisibility = get(gui_hFigure,'HandleVisibility');
if strcmp(gui_HandleVisibility, 'callback')
set(gui_hFigure,'HandleVisibility', 'on');
end
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});
if ishandle(gui_hFigure)
% Update handle visibility
set(gui_hFigure,'HandleVisibility', gui_HandleVisibility);
% Make figure visible
if gui_MakeVisible
set(gui_hFigure, 'Visible', 'on')
if gui_Options.singleton
setappdata(gui_hFigure,'GUIOnScreen', 1);
end
end
% Done with GUI initialization
rmappdata(gui_hFigure,'InGUIInitialization');
end
% If handle visibility is set to 'callback', turn it on until finished with
% OutputFcn
if ishandle(gui_hFigure)
gui_HandleVisibility = get(gui_hFigure,'HandleVisibility');
if strcmp(gui_HandleVisibility, 'callback')
set(gui_hFigure,'HandleVisibility', 'on');
end
gui_Handles = guidata(gui_hFigure);
else
gui_Handles = [];
end
if nargout
[varargout{1:nargout}] = feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles);
else
feval(gui_State.gui_OutputFcn, gui_hFigure, [], gui_Handles);
end
if ishandle(gui_hFigure)
set(gui_hFigure,'HandleVisibility', gui_HandleVisibility);
end
end
function gui_hFigure = local_openfig(name, singleton)
if nargin('openfig') == 3
gui_hFigure = openfig(name, singleton, 'auto');
else
% OPENFIG did not accept 3rd input argument until R13,
% toggle default figure visible to prevent the figure
% from showing up too soon.
gui_OldDefaultVisible = get(0,'defaultFigureVisible');
set(0,'defaultFigureVisible','off');
gui_hFigure = openfig(name, singleton);
set(0,'defaultFigureVisible',gui_OldDefaultVisible);
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -