Mercurial > repos > public > sbplib
comparison +grid/equidistant.m @ 177:c3378418d49a feature/grids
Updated equidistant and equidistantCurve to set the scaling of grids.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 29 Feb 2016 14:55:19 +0100 |
parents | c7b2f645101f |
children |
comparison
equal
deleted
inserted
replaced
174:513019e3d855 | 177:c3378418d49a |
---|---|
17 error('grid:equidistant:InvalidLimits','The elements of the limit must be increasing.'); | 17 error('grid:equidistant:InvalidLimits','The elements of the limit must be increasing.'); |
18 end | 18 end |
19 end | 19 end |
20 | 20 |
21 X = {}; | 21 X = {}; |
22 h = []; | |
22 for i = 1:length(m) | 23 for i = 1:length(m) |
23 X{i} = util.get_grid(varargin{i}{:},m(i)); | 24 [X{i}, h(i)] = util.get_grid(varargin{i}{:},m(i)); |
24 end | 25 end |
25 | 26 |
26 g = grid.Cartesian(X{:}); | 27 g = grid.Cartesian(X{:}); |
28 g.h = h; | |
27 end | 29 end |