changeset 238:5f75d7094983 feature/beams

grid: Fixed returns of funcToXXX
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 28 Jul 2016 11:45:02 +0200
parents 0fc1de5cd85b
children ba56e0d621f2
files +grid/funcToMatrix.m +grid/funcToPlotMatrix.m
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/+grid/funcToMatrix.m	Fri Jul 15 13:46:05 2016 +0200
+++ b/+grid/funcToMatrix.m	Thu Jul 28 11:45:02 2016 +0200
@@ -1,5 +1,5 @@
 % Converts a gridfunction to a matrix
 % Takes a grid function and and a structured grid.
 function F = funcToMatrix(g, gf)
-    reshapeRowMaj(gf, g.size());
+    F = reshapeRowMaj(gf, g.size());
 end
\ No newline at end of file
--- a/+grid/funcToPlotMatrix.m	Fri Jul 15 13:46:05 2016 +0200
+++ b/+grid/funcToPlotMatrix.m	Thu Jul 28 11:45:02 2016 +0200
@@ -1,5 +1,5 @@
 % Converts a gridfunction to a plot matrix
 % Takes a grid function and and a structured grid.
 function F = funcToPlotMatrix(g, gf)
-    reshapeToPlotMatrix(gf, g.size());
+    F = reshapeToPlotMatrix(gf, g.size());
 end
\ No newline at end of file