diff --git a/matlab/display_static_residuals.m b/matlab/display_static_residuals.m index acdc9bd7c..0f14d533e 100644 --- a/matlab/display_static_residuals.m +++ b/matlab/display_static_residuals.m @@ -32,7 +32,7 @@ function z = display_static_residuals(M_, options_, oo_,options_resid_) % You should have received a copy of the GNU General Public License % along with Dynare. If not, see . -non_zero = (isfield(options_resid_, 'non_zero') && options_resid_.non_zero); +non_zero = (nargin > 3 && isfield(options_resid_, 'non_zero') && options_resid_.non_zero); tags = M_.equations_tags; istag = 0; diff --git a/matlab/steady.m b/matlab/steady.m index 0c83bf8a0..bbbf070e8 100644 --- a/matlab/steady.m +++ b/matlab/steady.m @@ -86,7 +86,7 @@ if info(1) == 0 else if ~options_.noprint if ~isempty(oo_.steady_state) - display_static_residuals; + display_static_residuals(M_, options_, oo_); else skipline() disp('Residuals of the static equations cannot be computed because the steady state routine returned an empty vector.')