From 392ee4ae8a200a82003acd0c9b70c47c542f6b32 Mon Sep 17 00:00:00 2001 From: Marco Ratto <rattoma@d-01ri1701573.jrc.it> Date: Tue, 15 Jan 2019 15:32:06 +0100 Subject: [PATCH] trap possible cases where the option is type dates --- matlab/set_default_option.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matlab/set_default_option.m b/matlab/set_default_option.m index 44976a15a1..3710250084 100644 --- a/matlab/set_default_option.m +++ b/matlab/set_default_option.m @@ -41,9 +41,13 @@ if isempty(options.(field)) return end +if isdates(options.(field)) + return +end + if isnan(options.(field)) options.(field) = default; return end -% 06/07/03 MJ added ; to eval expression \ No newline at end of file +% 06/07/03 MJ added ; to eval expression -- GitLab