Fixed bug. Added missing routine which set the step length when computing a numerical gradient.

time-shift
Stéphane Adjemian (Charybdis) 2012-09-24 12:58:57 +02:00
parent 7e3fbe0b2f
commit 7f42c66723
1 changed files with 6 additions and 0 deletions

View File

@ -0,0 +1,6 @@
function c = step_length_correction(x,scale,i)
if isempty(scale)
c = 10^round(log10(abs(x)));
else
c = scale(i);
end