dynare/matlab/step_length_correction.m

6 lines
144 B
Matlab

function c = step_length_correction(x,scale,i)
if isempty(scale)
c = 10^round(log10(abs(x)));
else
c = scale(i);
end