resol.m: use isempty instead of length

bgp-dev
Johannes Pfeifer 2022-09-21 09:24:46 +02:00
parent 128eaa2da5
commit 945379a318
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ if options.loglinear
% Find variables with non positive steady state. Skip auxiliary
% variables for lagges/leaded exogenous variables
idx = find(dr.ys(get_all_variables_but_lagged_leaded_exogenous(M))<threshold);
if length(idx)
if ~isempty(idx)
if options.debug
variables_with_non_positive_steady_state = M.endo_names{idx};
skipline()