From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- SD-VBS/common/matlab/readFile.m | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SD-VBS/common/matlab/readFile.m (limited to 'SD-VBS/common/matlab/readFile.m') diff --git a/SD-VBS/common/matlab/readFile.m b/SD-VBS/common/matlab/readFile.m new file mode 100644 index 0000000..4888103 --- /dev/null +++ b/SD-VBS/common/matlab/readFile.m @@ -0,0 +1,22 @@ +function fid = readFile(path) + +file = fopen(path, 'r'); + +full = fscanf(file,'%f'); +elapsed = zeros(1,2); + +rows = full(1); +cols = full(2); +fid = zeros(rows, cols); + +k = 3; +for i=1:rows + for j =1:cols + fid(i,j) = full(k); + k = k+1; + end +end +fclose(file); + +end + -- cgit v1.2.2