From a021ae729fd6c726203932e9537abcd94c6af611 Mon Sep 17 00:00:00 2001 From: Sebastian Gnann Date: Tue, 29 Mar 2022 21:13:55 +0200 Subject: [PATCH] fix plotting bug --- TOSSH_code/utility_functions/util_RecessionSegments.m | 1 + 1 file changed, 1 insertion(+) diff --git a/TOSSH_code/utility_functions/util_RecessionSegments.m b/TOSSH_code/utility_functions/util_RecessionSegments.m index 59aed2e..5f7fe66 100644 --- a/TOSSH_code/utility_functions/util_RecessionSegments.m +++ b/TOSSH_code/utility_functions/util_RecessionSegments.m @@ -217,6 +217,7 @@ if size(flow_section,1)==0 error_flag = 3; error_str = ['Error: No long enough baseflow recession periods, consider increasing filter_par parameter. ', error_str]; + return elseif size(flow_section,1) < 10 error_flag = 1; error_str = ['Warning: Fewer than 10 recession segments extracted, results might not be robust. ', error_str];