view +util/get_grid.m @ 778:b9d2c76a4a07 feature/grids

Added tag grids0.1 for changeset 0776fa4754ff
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 24 Jul 2018 19:58:53 -0700
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