view +parametrization/equal_step_size.m @ 207:d521e17f72b6 feature/grids

blockmatrix: Added function to create zero blockmatrices.
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 15 Jun 2016 16:55:40 +0200
parents 3a3cf386bb7e
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