comparison +grid/equidistant.m @ 180:001239c03eb2 feature/beams

Merge with feature/grids.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 29 Feb 2016 15:08:01 +0100
parents c3378418d49a
children
comparison
equal deleted inserted replaced
176:d095b5396103 180:001239c03eb2
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