view +grid/equal_step_size.m @ 580:2ce903f28193

Make Cell class work with isempty()
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 07 Sep 2017 09:54:21 +0200
parents 48b6fb693025
children
line wrap: on
line source

% Calculates M so that the stepsize m/M is as close to n/M as possible
function M = equal_step_size(n,N,m)
    M = round((m*(N-1)+n)/n);
end