summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/svm/src/matlab/readMatrix.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 01:52:54 -0400
commit25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 (patch)
treeba80e76d25d9ca9486092e2f6b6d76f0e3352bf7 /SD-VBS/benchmarks/svm/src/matlab/readMatrix.m
parente2b50015cebdfba68699abd6e8575e38230f5a78 (diff)
debug libextra and remove matlab
Diffstat (limited to 'SD-VBS/benchmarks/svm/src/matlab/readMatrix.m')
-rw-r--r--SD-VBS/benchmarks/svm/src/matlab/readMatrix.m28
1 files changed, 0 insertions, 28 deletions
diff --git a/SD-VBS/benchmarks/svm/src/matlab/readMatrix.m b/SD-VBS/benchmarks/svm/src/matlab/readMatrix.m
deleted file mode 100644
index fe684c5..0000000
--- a/SD-VBS/benchmarks/svm/src/matlab/readMatrix.m
+++ /dev/null
@@ -1,28 +0,0 @@
1function readMatrix(srcImage, outName)
2
3write = fopen([outName '.m'], 'w');
4
5count = fwrite(write, 'function out = ');
6count = fwrite(write, outName);
7fprintf(write, '\n');
8count = fwrite(write, 'out = [...');
9fprintf(write, '\n');
10
11height = size(srcImage,1);
12width = size(srcImage,2);
13
14for nI=1:height
15 for nJ=1:width
16 fprintf(write, '%f ', srcImage(nI,nJ));
17 end
18 if(nI < height)
19 fprintf(write, ';...\n');
20 end
21end
22
23fprintf(write, '...\n');
24count = fwrite(write, '];');
25
26fclose(write);
27
28end