Mercurial > repos > public > sbplib
diff +grid/Cartesian.m @ 868:57760d7088ad bcSetupExperiment
Merge with feature/grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 27 Jul 2018 10:39:12 -0700 |
parents | 031d6db97270 |
children |
line wrap: on
line diff
--- a/+grid/Cartesian.m Thu Jul 26 17:28:48 2018 -0700 +++ b/+grid/Cartesian.m Fri Jul 27 10:39:12 2018 -0700 @@ -5,6 +5,7 @@ m % Number of points in each direction x % Cell array of vectors with node placement for each dimension. h % Spacing/Scaling + lim % Cell array of left and right boundaries for each dimension. end % General d dimensional grid with n points @@ -27,6 +28,11 @@ end obj.h = []; + + obj.lim = cell(1,obj.d); + for i = 1:obj.d + obj.lim{i} = {obj.x{i}(1), obj.x{i}(end)}; + end end % n returns the number of points in the grid function o = N(obj)