From 13df4979d81ac456b7de61a8d6fd10a95b7eb7c4 Mon Sep 17 00:00:00 2001
From: Johannes Pfeifer <jpfeifer@gmx,de>
Date: Mon, 3 Mar 2014 19:50:25 +0100
Subject: [PATCH] Make error message for insufficient simulation length more
informative.
---
matlab/stoch_simul.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m
index efbbb7c9cc..8b2144651c 100644
--- a/matlab/stoch_simul.m
+++ b/matlab/stoch_simul.m
@@ -136,7 +136,8 @@ end
if options_.periods > 0 && ~PI_PCL_solver
if options_.periods <= options_.drop
- disp(['STOCH_SIMUL error: The horizon of simulation is shorter than the number of observations to be dropped'])
+ fprintf('\nSTOCH_SIMUL error: The horizon of simulation is shorter than the number of observations to be dropped.\n')
+ fprintf('STOCH_SIMUL error: Either increase options_.periods or decrease options_.drop.\n')
options_ =options_old;
return
end
--
GitLab