Mercurial > repos > public > sbplib
comparison +grid/evalOn.m @ 274:ac8e00883986 feature/beams
Fixed a comment.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 06 Sep 2016 15:54:45 +0200 |
parents | 0e56192f6459 |
children | 3ea2ae2a3d15 |
comparison
equal
deleted
inserted
replaced
273:f688e2bdb74a | 274:ac8e00883986 |
---|---|
31 if size(f0,2) ~= 1 | 31 if size(f0,2) ~= 1 |
32 error('grid:evalOn:VectorValuedWrongDim', 'A vector valued function must be given as a column vector') | 32 error('grid:evalOn:VectorValuedWrongDim', 'A vector valued function must be given as a column vector') |
33 end | 33 end |
34 | 34 |
35 gf = func(X{:}); | 35 gf = func(X{:}); |
36 if k > 1 % Reorder so that componets sits together. | 36 if k > 1 % Reorder so that vectors sit together. |
37 gf = reshape(reshape(gf, [g.N, k])', [g.N*k, 1]); | 37 gf = reshape(reshape(gf, [g.N, k])', [g.N*k, 1]); |
38 end | 38 end |
39 end | 39 end |