Add logging conf and init function associated

This commit is contained in:
Thomas Dehaeze 2020-02-18 13:58:40 +01:00
parent 56e8a120fa
commit b40079d6e6
2 changed files with 19 additions and 0 deletions

BIN
mat/conf_log.mat Normal file

Binary file not shown.

View File

@ -0,0 +1,19 @@
function [] = initializeLoggingConfiguration(args)
arguments
args.log char {mustBeMember(args.log,{'none', 'all'})} = 'none'
args.Ts (1,1) double {mustBeNumeric, mustBePositive} = 1e-3
end
conf_log = struct();
switch args.log
case 'none'
conf_log.type = 0;
case 'all'
conf_log.type = 1;
end
conf_log.Ts = args.Ts;
save('./mat/conf_log.mat', 'conf_log');