From 00485425c1201a618daa8b88ae45e4fc5123ae24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 15 Jan 2013 12:48:56 +0100 Subject: [PATCH] Fix crash in conditional_forecast --- matlab/imcforecast.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/imcforecast.m b/matlab/imcforecast.m index 801ead636..56da43bca 100644 --- a/matlab/imcforecast.m +++ b/matlab/imcforecast.m @@ -46,7 +46,7 @@ function imcforecast(constrained_paths, constrained_vars, options_cond_fcst, con global options_ oo_ M_ bayestopt_ -if ~isempty(options_cond_fcst.simulation_type) +if isfield(options_cond_fcst, 'simulation_type') if strcmp(options_cond_fcst.simulation_type, 'deterministic') disp('deterministic condtional forecast'); det_cond_forecast(constrained_paths, constrained_vars, options_cond_fcst, constrained_perfect_foresight); -- GitLab