Fixed bug. Added missing routine which set the step length when computing a numerical gradient.
parent
7e3fbe0b2f
commit
7f42c66723
|
@ -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
|
Loading…
Reference in New Issue