From b40079d6e648378a2ba66cb8eafd3e654ffcbcfe Mon Sep 17 00:00:00 2001 From: Thomas Dehaeze Date: Tue, 18 Feb 2020 13:58:40 +0100 Subject: [PATCH] Add logging conf and init function associated --- mat/conf_log.mat | Bin 0 -> 223 bytes src/initializeLoggingConfiguration.m | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 mat/conf_log.mat create mode 100644 src/initializeLoggingConfiguration.m diff --git a/mat/conf_log.mat b/mat/conf_log.mat new file mode 100644 index 0000000000000000000000000000000000000000..f67282c1d414fac636d134c0cf2179eb3a63ecba GIT binary patch literal 223 zcmeZu4DoSvQZUssQ1EpO(M`+DN!3vZ$Vn_o%P-2cQgHY2i*PhE(NS}aZCnQ)f9?5Yy z!+6ApN8kY0Q)8t>0eee(eO)_s`?*saS=X?soMSzrI+b-LkK$1tg9GeG*gT$XdT2PE fF-KoHWci^xJee($z|YX8!jlI8svtW} literal 0 HcmV?d00001 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');