diff reshapeToPlotMatrixTest.m @ 163:51aaf67a7df5 feature/grids

Fixed naming and added functions for converting vectors to matrices for structured grid.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 22 Feb 2016 13:55:19 +0100
parents c75c03f692b3
children
line wrap: on
line diff
--- a/reshapeToPlotMatrixTest.m	Mon Feb 22 13:34:50 2016 +0100
+++ b/reshapeToPlotMatrixTest.m	Mon Feb 22 13:55:19 2016 +0100
@@ -1,4 +1,4 @@
-function tests = funcToPlotMatrixTest()
+function tests = reshapeToPlotMatrixTest()
     tests = functiontests(localfunctions);
 end
 
@@ -6,7 +6,7 @@
     inGf = [1 2 3 4 5]';
     inM = 5;
     out = [1 2 3 4 5]';
-    testCase.verifyEqual(grid.funcToPlotMatrix(inGf, inM),out);
+    testCase.verifyEqual(reshapeToPlotMatrix(inGf, inM),out);
 end
 
 function test2D(testCase)
@@ -24,7 +24,7 @@
 
     inM = [2, 3];
 
-    testCase.verifyEqual(grid.funcToPlotMatrix(inGf, inM),out);
+    testCase.verifyEqual(reshapeToPlotMatrix(inGf, inM),out);
 end
 
 function test3D(testCase)
@@ -44,5 +44,5 @@
 
     inM = [2, 3, 4];
 
-    testCase.verifyEqual(grid.funcToPlotMatrix(inGf, inM),out);
+    testCase.verifyEqual(reshapeToPlotMatrix(inGf, inM),out);
 end
\ No newline at end of file