From ac9415a943d2c8141916163983dce8601986ae63 Mon Sep 17 00:00:00 2001 From: Ferhat Mihoubi Date: Mon, 3 Jan 2011 15:54:22 +0100 Subject: [PATCH] - The bytecode.mex file has to be called when bytecode option is specified independently of the block option. --- matlab/resid.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/matlab/resid.m b/matlab/resid.m index 94acc149b..7861d1694 100644 --- a/matlab/resid.m +++ b/matlab/resid.m @@ -84,7 +84,7 @@ if options_.block && ~options_.bytecode end z(idx) = r; end -elseif options_.block && options_.bytecode +elseif options_.bytecode [check, z] = bytecode('evaluate','static'); mexErrCheck('bytecode', check); else @@ -100,6 +100,7 @@ if nargout == 0 for i = 1:4 disp(' ') end + ind = []; disp('Residuals of the static equations:') disp(' ') for i=1:M_.orig_endo_nbr