-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbasicdemo.m
98 lines (96 loc) · 3.51 KB
/
basicdemo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
function fig = basicdemo()
% This is the machine-generated representation of a Handle Graphics object
% and its children. Note that handle values may change when these objects
% are re-created. This may cause problems with any callbacks written to
% depend on the value of the handle at the time the object was saved.
% This problem is solved by saving the output as a FIG-file.
%
% To reopen this object, just type the name of the M-file at the MATLAB
% prompt. The M-file and its associated MAT-file must be on your path.
%
% NOTE: certain newer features in MATLAB may not have been saved in this
% M-file due to limitations of this format, which has been superseded by
% FIG-files. Figures which have been annotated using the plot editor tools
% are incompatible with the M-file/MAT-file format, and should be saved as
% FIG-files.
% RELEASE 2.0 of SLICOT Basic Systems and Control Toolbox.
% Based on SLICOT RELEASE 5.7, Copyright (c) 2002-2020 NICONET e.V.
%
% Revisions:
% V. Sima, 28-05-2005.
% P. Vacher, 27-06-2005.
%
load basicdemo
h0 = figure('Color',[0.8 0.8 0.8], ...
'Colormap',mat0, ...
'FileName','basicdemo.m', ...
'Name','basicdemo', ...
'NumberTitle','off', ...
'PaperPosition',[18 180 576.0000000000001 432.0000000000002], ...
'PaperUnits','points', ...
'Position',[194 67 680 518], ...
'RendererMode','manual', ...
'Tag','Fig1', ...
'ToolBar','none');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[1 1 1], ...
'Callback',mat1, ...
'Position',[0.07647058823529411 0.2857142857142857 0.3014705882352941 0.6061776061776061], ...
'String',mat2, ...
'Style','listbox', ...
'Tag','Listbox', ...
'Value',9);
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ListboxTop',0, ...
'Position',[0.1352941176470588 0.9034749034749035 0.1470588235294118 0.04826254826254827], ...
'String','Examples', ...
'Style','text', ...
'Tag','StaticText1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','close(gcf)', ...
'ListboxTop',0, ...
'Position',[0.08382352941176469 0.08301158301158298 0.1308823529411765 0.07722007722007721], ...
'String','Close', ...
'Tag','Pushbutton1');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback','callbk info', ...
'ListboxTop',0, ...
'Position',[0.2632352941176468 0.08108108108108113 0.1303104575163398 0.07775632775632774], ...
'String','Info', ...
'Tag','Pushbutton2');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.8 0.8 0.8], ...
'ListboxTop',0, ...
'Position',[0.525 0.7818532818532819 0.4014705882352941 0.04633204633204633], ...
'String','Choose an example from the list', ...
'Style','text', ...
'Tag','StaticText2');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.752941176470588 0.752941176470588 0.752941176470588], ...
'Callback',mat3, ...
'ListboxTop',0, ...
'Position',mat4, ...
'String','Begin example', ...
'Tag','Pushbutton3');
h1 = uicontrol('Parent',h0, ...
'Units','normalized', ...
'BackgroundColor',[0.803921568627451 0.772549019607843 0.827450980392157], ...
'Enable','inactive', ...
'Max',2, ...
'Position',[0.5426470588235294 0.3687258687258687 0.4014705882352941 0.3725868725868726], ...
'String',mat5, ...
'Style','listbox', ...
'Tag','explic', ...
'UserData','texts', ...
'Value',[]);
if nargout > 0, fig = h0; end
uiwait