-
Notifications
You must be signed in to change notification settings - Fork 27
/
master_export.m
31 lines (26 loc) · 996 Bytes
/
master_export.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
function master_export(file_export, file_init, file_ann_ht, file_ann_mf)
% Store the constant data.
%
% These data are constant (no part of the sweep combinations).
% These data are used for both magnetic and thermal model.
%
% Parameters:
% file_export (str): path of the file to be written with the exported data
% file_init (str): path of the file containing the constant data
% file_ann_ht (str): path of the file containing the thermal ANN/regression data
% file_ann_mf (str): path of the file containing the magnetic ANN/regression data
%
% (c) 2019-2020, ETH Zurich, Power Electronic Systems Laboratory, T. Guillod
% init
fprintf('################## master_export\n')
% load the ANN/regression data
fprintf('load\n')
ann_ht = load(file_ann_ht);
ann_mf = load(file_ann_mf);
const = load(file_init);
% save data
fprintf('save\n')
save(file_export, '-v7.3', 'const', 'ann_ht', 'ann_mf')
% teardown
fprintf('################## master_export\n')
end