diff options
author | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 03:47:33 -0400 |
---|---|---|
committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-20 03:47:33 -0400 |
commit | a32f220f06cc463e5b56e7fa0b1b1334d94d08f3 (patch) | |
tree | 4af4caa60074465d85fc2ef5cc1b23e74c064329 /SD-VBS/common/matlab/fSelfCheck.m | |
parent | 79f30887129145e15e5172e36a7d7602859fc932 (diff) |
matlab removed
Diffstat (limited to 'SD-VBS/common/matlab/fSelfCheck.m')
-rw-r--r-- | SD-VBS/common/matlab/fSelfCheck.m | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/SD-VBS/common/matlab/fSelfCheck.m b/SD-VBS/common/matlab/fSelfCheck.m deleted file mode 100644 index 0288328..0000000 --- a/SD-VBS/common/matlab/fSelfCheck.m +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | function ret = fSelfCheck(in1, path, tol) | ||
2 | |||
3 | r1 = size(in1, 1); | ||
4 | c1 = size(in1, 2); | ||
5 | |||
6 | ret = 1; | ||
7 | |||
8 | file = [path, '/expected.m']; | ||
9 | fd = fopen(file, 'r'); | ||
10 | |||
11 | [in2, count] = fscanf(fd, '%f'); | ||
12 | |||
13 | if(count ~= (r1*c1) ) | ||
14 | fprintf(1, 'Dimensions mismatch: Expected %d\t Observed %d\n', count, (r1*c1)); | ||
15 | ret = -1; | ||
16 | else | ||
17 | ret = 1; | ||
18 | for i=1:(r1*c1) | ||
19 | if( (abs(in1(i)) - abs(in2(i)) > tol) || (abs(in2(i)) - abs(in1(i))) > tol) | ||
20 | fprintf(1, 'Checking Error: Index %d\tExpected %f\tObserved %f\n', i, in2(i), in1(i)); | ||
21 | ret = -1; | ||
22 | break; | ||
23 | end | ||
24 | end | ||
25 | |||
26 | end | ||
27 | |||