Commit 5ef73908 authored by Simon Maretzke's avatar Simon Maretzke
Browse files

bug fix

parent 6cc13131
......@@ -134,7 +134,7 @@ end
% Automatically choose suitable padded size if required
if strcmpi(settings.sizePad, 'auto')
settings.sizePad = sizeIn + 2*ceil(0.5./abs(fresnelNumbers(:).'));
settings.sizePad = sizeIn + max(2*ceil(0.5./abs(fresnelNumbers.')), [], 1);
settings.sizePad = max(settings.sizePad, settings.sizeOut);
% For convolution-based methods, padded size need not be greater
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment