view +util/get_grid.m @ 8:67ab7fd8054c

Changed to cleaner way of gett the current folder.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 21 Sep 2015 17:40:07 +0200
parents 48b6fb693025
children 7067bf8adbfa
line wrap: on
line source

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