resol.m: use isempty instead of length
parent
128eaa2da5
commit
945379a318
|
@ -86,7 +86,7 @@ if options.loglinear
|
||||||
% Find variables with non positive steady state. Skip auxiliary
|
% Find variables with non positive steady state. Skip auxiliary
|
||||||
% variables for lagges/leaded exogenous variables
|
% variables for lagges/leaded exogenous variables
|
||||||
idx = find(dr.ys(get_all_variables_but_lagged_leaded_exogenous(M))<threshold);
|
idx = find(dr.ys(get_all_variables_but_lagged_leaded_exogenous(M))<threshold);
|
||||||
if length(idx)
|
if ~isempty(idx)
|
||||||
if options.debug
|
if options.debug
|
||||||
variables_with_non_positive_steady_state = M.endo_names{idx};
|
variables_with_non_positive_steady_state = M.endo_names{idx};
|
||||||
skipline()
|
skipline()
|
||||||
|
|
Loading…
Reference in New Issue