📄 guimain.m
字号:
function fig = guimain()
% GUIMAIN Used by BNBGUI
% Do not run this file from the Matlab prompt.
load guimain
h0 = figure('Units','points', ...
'CloseRequestFcn','BNBGUICB(''quit main''); closereq;', ...
'Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'FileName','C:\MATLABR11\work\guimain.m', ...
'MenuBar','none', ...
'Name','main BNB GUI', ...
'NumberTitle','off', ...
'PaperPosition',[18 180 576.0000000000001 432.0000000000002], ...
'PaperUnits','points', ...
'Position',[249.5172413793104 91.24137931034484 278.6896551724138 218.4827586206897], ...
'Tag','main BNB GUI', ...
'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[6.206896551724139 130.3448275862069 254.4827586206897 80.68965517241381], ...
'String',mat1, ...
'Style','text', ...
'Tag','results');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback',mat2, ...
'ListboxTop',0, ...
'Position',[142.7586206896552 37.24137931034483 62.0689655172414 24.82758620689656], ...
'String','function', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''settings'');', ...
'ListboxTop',0, ...
'Position',[142.7586206896552 6.206896551724139 62.0689655172414 24.82758620689656], ...
'String','settings', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'BusyAction','cancel', ...
'Callback','bnbguicb(''optimize'');', ...
'ListboxTop',0, ...
'Position',[211.6551724137931 36.62068965517242 62.0689655172414 24.82758620689656], ...
'String','optimize', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback',mat3, ...
'ListboxTop',0, ...
'Position',[211.0344827586207 6.206896551724139 62.0689655172414 24.82758620689656], ...
'String','quit', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','bnbguicb(''xlist'');', ...
'Enable','off', ...
'Position',mat4, ...
'Style','listbox', ...
'Tag','xlist', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','bnbguicb(''x0'');', ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[68.27586206896554 80.68965517241381 62.0689655172414 12.41379310344828], ...
'Style','edit', ...
'Tag','x0');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','bnbguicb(''xlb'');', ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[68.27586206896554 62.0689655172414 62.0689655172414 12.41379310344828], ...
'Style','edit', ...
'Tag','xlb');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback',mat5, ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[68.27586206896554 99.31034482758622 62.0689655172414 12.41379310344828], ...
'Style','edit', ...
'Tag','xub');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[49.65517241379311 99.31034482758622 12.41379310344828 12.41379310344828], ...
'String','xub', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[49.65517241379311 62.0689655172414 12.41379310344828 12.41379310344828], ...
'String','xlb', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[49.65517241379311 80.68965517241381 12.41379310344828 12.41379310344828], ...
'String','x0', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','bnbguicb(''continuous'');', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[49.65517241379311 43.44827586206898 55.86206896551725 12.41379310344828], ...
'String','continuous', ...
'Style','radiobutton', ...
'Tag','continuous', ...
'UserData','[ ]');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','bnbguicb(''integer'');', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[49.65517241379311 24.82758620689656 55.86206896551725 12.41379310344828], ...
'String','integer', ...
'Style','radiobutton', ...
'Tag','integer');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'Callback','bnbguicb(''fixed'');', ...
'Enable','off', ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[49.65517241379311 6.206896551724139 55.86206896551725 12.41379310344828], ...
'String','fixed', ...
'Style','radiobutton', ...
'Tag','fixed');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','bnbguicb(''parlist'');', ...
'Enable','off', ...
'Position',[142.7586206896552 68.27586206896554 37.24137931034483 43.44827586206898], ...
'String',' ', ...
'Style','listbox', ...
'Tag','parlist', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'HorizontalAlignment','left', ...
'ListboxTop',0, ...
'Position',[186.2068965517242 99.31034482758622 12.41379310344828 12.41379310344828], ...
'String','val', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[1 1 1], ...
'Callback','bnbguicb(''par'');', ...
'Enable','off', ...
'HorizontalAlignment','right', ...
'ListboxTop',0, ...
'Position',[204.8275862068966 99.31034482758622 62.0689655172414 12.41379310344828], ...
'Style','edit', ...
'Tag','par');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''save'');', ...
'ListboxTop',0, ...
'Position',[211.0344827586207 68.27586206896554 31.0344827586207 24.82758620689656], ...
'String','save', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''load'');', ...
'ListboxTop',0, ...
'Position',[242.0689655172414 68.27586206896554 31.0344827586207 24.82758620689656], ...
'String','load', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''help'');', ...
'ListboxTop',0, ...
'Position',mat6, ...
'String','help', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''resultsslider'');', ...
'ListboxTop',0, ...
'Position',[260.6896551724138 130.3448275862069 12.41379310344828 80.68965517241381], ...
'Style','slider', ...
'Tag','resultsslider', ...
'Value',1);
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''Z X t c fail -> workspace'');', ...
'ListboxTop',0, ...
'Position',mat7, ...
'String','Z X t c fail -> workspace', ...
'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''X -> x0'');', ...
'ListboxTop',0, ...
'Position',mat8, ...
'String','X -> x0', ...
'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''clc workspace'');', ...
'ListboxTop',0, ...
'Position',mat9, ...
'String','clc workspace', ...
'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
'Units','points', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','bnbguicb(''copyright'');', ...
'FontName','Symbol', ...
'ListboxTop',0, ...
'Position',mat10, ...
'String','
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -