Mercurial > repos > public > sbplib
diff +grid/evalOn.m @ 171:0e56192f6459 feature/grids
Made evalOn a bit clearer.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 25 Feb 2016 11:17:48 +0100 |
parents | ea8103ad2cc5 |
children | ac8e00883986 |
line wrap: on
line diff
--- a/+grid/evalOn.m Thu Feb 25 11:10:25 2016 +0100 +++ b/+grid/evalOn.m Thu Feb 25 11:17:48 2016 +0100 @@ -33,5 +33,7 @@ end gf = func(X{:}); - gf = reshape(reshape(gf, [g.N, k])', [g.N*k, 1]); % Reorder so that componets sits together. + if k > 1 % Reorder so that componets sits together. + gf = reshape(reshape(gf, [g.N, k])', [g.N*k, 1]); + end end \ No newline at end of file