diff --git a/mat/conf_log.mat b/mat/conf_log.mat new file mode 100644 index 0000000..f67282c Binary files /dev/null and b/mat/conf_log.mat differ diff --git a/src/initializeLoggingConfiguration.m b/src/initializeLoggingConfiguration.m new file mode 100644 index 0000000..76b6c06 --- /dev/null +++ b/src/initializeLoggingConfiguration.m @@ -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');