📄 avvio_1.m
字号:
function avvio_1
%Crea la prima finesta di MvTools
%
% avvio_1
%
% Massimo Davini 12/05/99 --- revised 21/04/2000
global stack;
Frame00=uicontrol('style','frame',...
'units','normalized','position',[.05 .77 .9 .15],...
'backgroundcolor',[1 1 1],'tag','first');
Title = uicontrol('style','text',...
'unit','normalized','position',[.06 .785 .88 .1],...
'backgroundColor',[1 1 1],'ForegroundColor',[1 0 0],...
'fontunits','normalized','fontsize',.7,'fontweight','bold',...
'Horizontalalignment','center','fontname','times new roman',...
'string','MULTIVARIABLE TOOLS','tag','first',...
'fontangle','italic');
%-------------------------------
%----------TEXT & FRAME---------
FrameMod=uicontrol('style','frame',...
'units','normalized','position',[0.05 0.6 0.4 0.075],...
'backgroundcolor',[1 1 0.2],'tag','first');
TestoMod = uicontrol('style','text',...
'unit','normalized','position',[0.055 0.61 0.39 0.051],...
'fontunits','normalized','fontsize',.85,...
'fontangle','italic','fontweight','bold',...
'BackgroundColor',[1 1 0.2],'ForegroundColor',[0 0 0],...
'Horizontalalignment','center','string','MODELING','tag','first');
%---
FrameAna=uicontrol('style','frame',...
'units','normalized','position',[0.05 0.5 0.4 0.075],...
'backgroundcolor',[1 1 0.2],'tag','first');
TestoAna = uicontrol('style','text',...
'unit','normalized','position',[0.055 0.51 0.39 0.051],...
'fontunits','normalized','fontsize',.85,...
'fontangle','italic','fontweight','bold',...
'BackgroundColor',[1 1 0.2],'ForegroundColor',[0 0 0],...
'Horizontalalignment','center','string','ANALYSIS','tag','first');
%---
FrameSyn=uicontrol('style','frame',...
'units','normalized','position',[0.05 0.4 0.4 0.075],...
'backgroundcolor',[1 1 0.2],'tag','first');
TestoSyn = uicontrol('style','text',...
'unit','normalized','position',[0.055 0.41 0.39 0.051],...
'fontunits','normalized','fontsize',.85,...
'fontangle','italic','fontweight','bold',...
'BackgroundColor',[1 1 0.2],'ForegroundColor',[0 0 0],...
'Horizontalalignment','center','string','SYNTHESIS','tag','first');
%---
FrameOpt=uicontrol('style','frame',...
'units','normalized','position',[0.05 0.3 0.4 0.075],...
'backgroundcolor',[1 1 0.2],'tag','first');
TestoOpt = uicontrol('style','text',...
'unit','normalized','position',[0.055 0.31 0.39 0.051],...
'fontunits','normalized','fontsize',.85,...
'fontangle','italic','fontweight','bold','tag','first',...
'BackgroundColor',[1 1 0.2],'ForegroundColor',[0 0 0],...
'Horizontalalignment','center','string','OPTIMIZATION');
%---
FrameEva=uicontrol('style','frame',...
'units','normalized','position',[0.05 0.2 0.4 0.075],...
'backgroundcolor',[1 1 0.2],'tag','first');
TestoEva = uicontrol('style','text',...
'unit','normalized','position',[0.055 0.21 0.39 0.051],...
'fontunits','normalized','fontsize',.85,...
'fontangle','italic','fontweight','bold','tag','first',...
'BackgroundColor',[1 1 0.2],'ForegroundColor',[0 0 0],...
'Horizontalalignment','center','string','EVALUATION');
%---
FrameSim=uicontrol('style','frame',...
'units','normalized','position',[0.05 0.1 0.4 0.075],...
'backgroundcolor',[1 1 .2],'tag','first');
TestoSim = uicontrol('style','text',...
'unit','normalized','position',[0.055 0.11 0.39 0.051],...
'fontunits','normalized','fontsize',.85,...
'fontangle','italic','fontweight','bold','tag','first',...
'BackgroundColor',[1 1 .2],'ForegroundColor',[0 0 0],...
'Horizontalalignment','center','string','SIMULATION');
%--------------------------
%---------BOTTONI----------
FrameRB=uicontrol('style','frame',...
'units','normalized','position',[0.5 0.4 0.45 0.275],...
'backgroundcolor',[1 1 1],'tag','first');
check1 = uicontrol('style','checkbox',...
'unit','normalized','position',[0.52 0.6 0.41 0.05],...
'fontunits','normalized','fontsize',.6,'fontweight','bold',...
'BackgroundColor',[1 1 1],'tag','first','enable','inactive',...
'Horizontalalignment','center',...
'string','LMI and Control Toolboxes');
check2 = uicontrol('style','checkbox',...
'unit','normalized','position',[0.52 0.54 0.41 0.05],...
'fontunits','normalized','fontsize',.6,'fontweight','bold',...
'BackgroundColor',[1 1 1],'tag','first','enable','inactive',...
'Horizontalalignment','center','string','Mu analysis\synthesis toolbox');
check3 = uicontrol('style','checkbox',...
'unit','normalized','position',[0.52 0.48 0.41 0.05],...
'fontunits','normalized','fontsize',.6,'fontweight','bold',...
'BackgroundColor',[1 1 1],'tag','first','enable','inactive',...
'Horizontalalignment','center','string','Robust control toolbox');
check4 = uicontrol('style','checkbox',...
'unit','normalized','position',[0.52 0.42 0.41 0.05],...
'fontunits','normalized','fontsize',.6,'fontweight','bold',...
'BackgroundColor',[1 1 1],'tag','first','enable','inactive',...
'Horizontalalignment','center','string','Optimization toolbox');
BottStart = uicontrol('style','push',...
'unit','normalized','position',[0.5 0.25 0.45 0.12],...
'fontunits','normalized','fontsize',0.35,'fontweight','bold',...
'Horizontalalignment','center','Enable','off',...
'string','START','tag','first',...
'callback','delete(findobj(''tag'',''first''));modeling;');
BottHelp = uicontrol('style','push',...
'unit','normalized','position',[0.5 0.1 0.2 0.12],...
'fontunits','normalized','fontsize',0.35,'fontweight','bold',...
'Horizontalalignment','center','string','HELP','tag','first',...
'callback','web([''file:///'' which(''HelpDeskmvt.htm'')]);');
BottExit = uicontrol('style','push',...
'unit','normalized','position',[0.75 0.1 0.2 0.12],...
'fontunits','normalized','fontsize',0.35,'fontweight','bold',...
'Horizontalalignment','center','string','EXIT','tag','first',...
'callback','esci;');
set(gcf,'visible','on');
drawnow;
pause(.5);
watchon;
if ~isempty(ver('control')) & ~isempty(ver('lmi'))
set(check1,'value',1,'foregroundcolor','blue');
end;
pause(.2);
watchoff;
watchon;
if ~isempty(ver('mutools'))
set(check2,'value',1,'foregroundcolor','blue');
end;
pause(.2);
watchoff;
watchon;
if ~isempty(ver('robust'))
set(check3,'value',1,'foregroundcolor','blue');
end;
pause(.2);
watchoff;
watchon;
if ~isempty(ver('optim'))
set(check4,'value',1,'foregroundcolor','blue');
end;
pause(.2);
watchoff;
versione=version;
if str2num(versione(1:3))>=7 & str2num(versione(3:5))>0,
if ~isempty(ver('robust'))
set(check1,'value',1,'foregroundcolor','blue');
set(check2,'value',1,'foregroundcolor','blue');
end;
end
clear version;
if get(check1,'value')&get(check2,'value')
set(BottStart,'enable','on');
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -