diff +util/get_grid.m @ 0:48b6fb693025

Initial commit.
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 17 Sep 2015 10:12:50 +0200
parents
children 7067bf8adbfa
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+util/get_grid.m	Thu Sep 17 10:12:50 2015 +0200
@@ -0,0 +1,5 @@
+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
\ No newline at end of file