summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/matlab/testReshapeFunction.m
diff options
context:
space:
mode:
authorleochanj <jbakita@cs.unc.edu>2020-10-21 01:52:54 -0400
committerleochanj <jbakita@cs.unc.edu>2020-10-21 15:59:54 -0400
commit0efc775370d2ff91927d1b383a99eab78dc5538f (patch)
treea41fe470fee5adc4d944ecd6b917bc48df8c7e0f /SD-VBS/common/matlab/testReshapeFunction.m
parente2b50015cebdfba68699abd6e8575e38230f5a78 (diff)
debug libextra and remove matlab
FLUSH_CACHES
Diffstat (limited to 'SD-VBS/common/matlab/testReshapeFunction.m')
-rwxr-xr-xSD-VBS/common/matlab/testReshapeFunction.m21
1 files changed, 0 insertions, 21 deletions
diff --git a/SD-VBS/common/matlab/testReshapeFunction.m b/SD-VBS/common/matlab/testReshapeFunction.m
deleted file mode 100755
index 1dac432..0000000
--- a/SD-VBS/common/matlab/testReshapeFunction.m
+++ /dev/null
@@ -1,21 +0,0 @@
1function testReshapeFunction
2
3matrixSize = zeros(1, 2);
4matrixSize(1) = 4;
5matrixSize(2) = 5;
6inputMatrix = zeros(matrixSize(1), matrixSize(2));
7
8for i=1:matrixSize(1)
9 for j=1:matrixSize(2)
10 inputMatrix(i,j) = i+j;
11 end
12end
13
14outputMatrix = reshapeMatrix(inputMatrix, matrixSize);
15actualOut = reshape(inputMatrix, matrixSize);
16
17if outputMatrix == actualOut
18 disp('SUCCESS');
19else
20 disp('ERROR');
21end \ No newline at end of file