summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/matlab/fWriteMatrix.m
blob: 3995aa6d7c81e6761a7dea0e49454b2d56486728 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function fWriteMatrix(input, inpath)

file = [inpath '/expected.m'];
disp(file);
fd = fopen(file, 'w');

[rows, cols] = size(input);

for j=1:rows
    for i=1:cols
        fprintf(fd, '%f\t', input(j,i));
    end
    fprintf(fd, '\n');
end
fclose(fd);
end