Add logging conf and init function associated
This commit is contained in:
parent
56e8a120fa
commit
b40079d6e6
BIN
mat/conf_log.mat
Normal file
BIN
mat/conf_log.mat
Normal file
Binary file not shown.
19
src/initializeLoggingConfiguration.m
Normal file
19
src/initializeLoggingConfiguration.m
Normal 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');
|
Loading…
Reference in New Issue
Block a user