forked from ethz-pes/AI-mag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaster_plot_single.m
50 lines (39 loc) · 1.12 KB
/
master_plot_single.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
function master_plot_single(file_compute_single)
% Plot a single inductor design in a GUI.
%
% Start a GUI with the design.
% Show the geometry.
% Show the figures of merit.
% Show the operating points.
%
% Parameters:
% file_compute_single (str): path of the file to be written with the computed single design
%
% (c) 2019-2020, ETH Zurich, Power Electronic Systems Laboratory, T. Guillod
% init
fprintf('################## master_plot_single\n')
% load the FEM/ANN data
fprintf('load\n')
data_tmp = load(file_compute_single);
fom = data_tmp.fom;
operating = data_tmp.operating;
% gui
fprintf('gui\n')
plot_design(fom, operating)
fprintf('################## master_plot_single\n')
end
function plot_design(fom, operating)
% Display the computed design with a GUI.
%
% Parameters:
% fom (struct): computed figures of merit
% operating (struct): computed operating points
% single design is required
id_design = 1;
% create GUI object
inductor_gui = design_display.InductorGui(id_design, fom, operating);
% set design
inductor_gui.set_id_select(id_design)
% launch gui
inductor_gui.open_gui()
end