comparison +grid/Grid.m @ 153:7aee9eba3bb8 feature/grids

Added abstract classes for some different types of grids.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 22 Dec 2015 11:59:55 +0100
parents
children cf748f33cd5b
comparison
equal deleted inserted replaced
152:276dcccf6155 153:7aee9eba3bb8
1 classdef Grid < handle
2 % General d dimensional grid with n points
3 methods (Abstract)
4 % n returns the number of points in the grid
5 o = N(obj)
6
7 % d returns the spatial dimension of the grid
8 o = D(obj)
9
10 % points returns a n x d matrix containing the coordianets for all points.
11 X = points(obj)
12 end
13 end
14
15
16
17 %% Should it be able to return a cell size aswell? For an equidistant grid this would be know
18 %% for other grids the constructor would have to make something up.
19 %% For example the grid.Cartesian constructor would take a h (1 x d) vector as an in parameter.