-
Notifications
You must be signed in to change notification settings - Fork 1
/
InSI.m
68 lines (56 loc) · 1.55 KB
/
InSI.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
function InSI()
%% A MatLab Toolbox for Informed System Identification in Wireless Communications
%
%% Documents: https://avitech-vnu.github.io/InSI
%
%% Support R2014B or later
%
% Adapted for InSI by Do Hai Son, 28-Jul-2023
% InSI: A MatLab Toolbox for Informed System Identification in
% Wireless Communications
% https://avitech-vnu.github.io/InSI
% Project: NAFOSTED 01/2019/TN on Informed System Identification
% PI: Nguyen Linh Trung, Vietnam National University, Hanoi, Vietnam
% Co-PI: Karim Abed-Meraim, Université d’Orléans, France
global main_path;
main_path = mfilename('fullpath'); % get path of active file
main_path = main_path(1:end-4);
addpath(fullfile(main_path, 'Shared', 'Utils'));
addpath(genpath_exclude(main_path, {'.git'}));
%% Close all InSI windows
if ~close_InSI()
return
end
% Check MatLab version and load configs
global configs;
matlab_version = version('-release');
matlab_version = regexp(matlab_version,'(-)?\d+(\.\d+)?(e(-|+)\d+)?','match');
if (str2num(matlab_version{1}) < 2016)
configs = Configs_R16;
else
configs = Configs_R17;
end
% Clear auto save file of matlab
clear_asv_files(main_path);
%% format master clock
format shortg;
global InSI_time;
InSI_time = datetime('now');
%% Declear global vars
global results;
results = Results;
init_results();
global pre_algo;
pre_algo = '';
global input_data;
input_data = {};
%% Load MODE GUI
loader('Opening InSI', 'InSI_mode');
try
F = findall(0, 'type', 'figure', 'tag', 'InSI_loader');
waitbar(1, F, 'Done!');
delete(F);
catch ME
disp(ME);
end
end