view +util/get_grid.m @ 357:19495f126f06 feature/beams

Minor clean up of d4_variable_4.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 05 Dec 2016 13:10:44 +0100
parents 7067bf8adbfa
children
line wrap: on
line source

% [x,h] = get_grid(a,b,m)
function [x,h] = get_grid(a,b,m)
    % TODO: allow the interval to be a vector
    x = linspace(a,b,m)';
    h = (b-a)/(m-1);
end