-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbgFunSpecSelection.m
37 lines (33 loc) · 1.05 KB
/
bgFunSpecSelection.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
function bgFunSpecSelection(hObject, eventData)
%% bgFunSpecSelection switch panel for reference function definition
% This function switches panel for specification of reference function
% definition: load from file, define by handle function, or by the VF model.
%
% INPUTS
% hObject: buttongroup [1 x 1]
% eventData: struct, not used
%
% SYNTAX
%
% bgFunSpecSelection(hObject, eventData)
%
% © 2019, Petr Kadlec, BUT, kadlecp@feec.vutbr.cz
fig = hObject.Parent.Parent;
h = getappdata(fig, 'handles');
switch hObject.SelectedObject.String
case 'Specify p, r, d, e'
h.specPanel.Visible = 'on';
h.loadPanel.Visible = 'off';
h.handlePanel.Visible = 'off';
readModelFromTable(fig);
case 'Load from file'
h.loadPanel.Visible = 'on';
h.specPanel.Visible = 'off';
h.handlePanel.Visible = 'off';
case 'Handle function'
h.handlePanel.Visible = 'on';
h.specPanel.Visible = 'off';
h.loadPanel.Visible = 'off';
readModelFromHandle(fig);
end
end