Make error message for insufficient simulation length more informative.

time-shift
Johannes Pfeifer 2014-03-03 19:50:25 +01:00
parent cf4f7f362f
commit 13df4979d8
1 changed files with 2 additions and 1 deletions

View File

@ -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