From a32f220f06cc463e5b56e7fa0b1b1334d94d08f3 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Tue, 20 Oct 2020 03:47:33 -0400 Subject: matlab removed --- SD-VBS/common/matlab/selfCheck.m | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 SD-VBS/common/matlab/selfCheck.m (limited to 'SD-VBS/common/matlab/selfCheck.m') diff --git a/SD-VBS/common/matlab/selfCheck.m b/SD-VBS/common/matlab/selfCheck.m deleted file mode 100644 index 55c8de8..0000000 --- a/SD-VBS/common/matlab/selfCheck.m +++ /dev/null @@ -1,27 +0,0 @@ -function ret = selfCheck(in1, path, tol) - -r1 = size(in1, 1); -c1 = size(in1, 2); - -ret = 1; - -file = [path, '/expected.m']; -fd = fopen(file, 'r'); - -[in2, count] = fscanf(fd, '%d'); - -if(count ~= (r1*c1) ) - fprintf(1, 'Dimensions mismatch: Expected %d\t Observed %d\n', count, (r1*c1)); - ret = -1; -else - ret = 1; - for i=1:(r1*c1) - if( (abs(in1(i)) - abs(in2(i)) > tol) || (abs(in2(i)) - abs(in1(i))) > tol) - fprintf(1, 'Checking Error: Index %d\tExpected %d\tObserved %d\n', i, in2(i), in1(i)); - ret = -1; - break; - end - end - -end - -- cgit v1.2.2