-
Notifications
You must be signed in to change notification settings - Fork 3
/
gcontrol_sib.m
83 lines (70 loc) · 3.13 KB
/
gcontrol_sib.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
static_fig=gcf;
Text_frame_hgt=20;
% Create State Number Text label
uicontrol(static_fig,...
'Style','frame',...
'BackgroundColor','b',...
'Position',[400,30,135,350]);
uicontrol(static_fig,...
'Style','text',...
'String','StateVariable:',...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,333,125,Text_frame_hgt]);
% Create State Number Text
Null_Space_HANDLES(1)=uicontrol(static_fig,...
'Style','text',...
'String',statename(1,:),...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,311,125,Text_frame_hgt]);
% Create Null Space Spanning Vector slider
Null_Space_HANDLES(2)=uicontrol(static_fig,...
'Style','slider',...
'Min',1,'Max',k_states,'Value',1,...
'Backgroundcolor',[0.701961 0.701961 0.701961],...
'Callback',['i_max=round(get(Null_Space_HANDLES(2),''Value''));',...
'set(Null_Space_HANDLES(1),''String'', statename(i_max,:));',...
'set(Null_Space_HANDLES(3),''String'', abs(sib_v1(i_max,:)));'],...
'Position',[405,289,125,20]);
% Create Null Space label
Null_Space_HANDLES(3) = uicontrol(static_fig,...
'Style','text',...
'String',abs(vpoc),...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,267,125,Text_frame_hgt]);
uicontrol(static_fig,...
'Style','text',...
'String','NullSpaceVector:',...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,245,125,Text_frame_hgt]);
% Create Parameter Text label
uicontrol(static_fig,...
'Style','text',...
'String','Parameter:',...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,133,125,Text_frame_hgt]);
% Create State Number Text
RemedialAction_HANDLES(1) = uicontrol(static_fig,...
'Style','text',...
'String',paramname(1,:),...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,111,125,20]);
RemedialAction_HANDLES(2) = uicontrol(static_fig,...
'Style','slider',...
'Min',1,'Max',k_params,'Value',1,...
'Backgroundcolor',[0.701961 0.701961 0.701961],...
'Callback',['i_max1=round(get(RemedialAction_HANDLES(2),''Value''));',...
'set(RemedialAction_HANDLES(1),''String'', paramname(i_max1,:));',...
'set(RemedialAction_HANDLES(3),''String'', wpoc(i_max1,:));'],...
'Position',[405,89,125,20]);
% Create Remedial Action Pop-Up
RemedialAction_HANDLES(3) = uicontrol(static_fig,...
'Style','text',...
'String',wpoc,...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,67,125,Text_frame_hgt]);
uicontrol(static_fig,...
'Style','text',...
'String','Remedial Action:',...
'BackgroundColor',[0.701961 0.701961 0.701961],...
'Position',[405,45,125,Text_frame_hgt]);
Bif_Data_Flag=1;