Commit 3ff2d055 authored by Jan-Gerrit Richter's avatar Jan-Gerrit Richter

bugfix: round betares to integer

parent 13adedcd
......@@ -302,6 +302,8 @@ function [] = daffv17_write( varargin )
args.betapoints = (betaspan / args.betares) + 1;
if (abs(args.betapoints - round(args.betapoints)) > 1e-5 )
error('Beta range and beta resolution are not an integer multiple')
else
args.betapoints = round(args.betapoints);
end
else
args.betares = betaspan / (args.betapoints-1);
......
Markdown is supported
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