Mercurial > repos > public > sbplib
view +parametrization/equal_step_size.m @ 902:306f5b3cd7bc
Merged in bcSetupExperiment (pull request #10)
Improved bulk boundary condition handling
Approved-by: Martin Almquist <malmquist@stanford.edu>
author | Jonatan Werpers <jonatan.werpers@it.uu.se> |
---|---|
date | Sat, 24 Nov 2018 14:55:48 +0000 |
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