% Pretty print for a 3 row matrix
% Play with recycling, writes to a file
% Minas Spetsakis, Oct. 2019

[k,l] = size(Vi);
fd = fopen('PrettyMat.csv','w');
fprintf(fd, '%5.2f, ',Vi(1,1:l-1)); fprintf(fd, '%5.2f\n',Vi(1,l));
fprintf(fd, '%5.2f, ',Vi(2,1:l-1)); fprintf(fd, '%5.2f\n',Vi(2,l));
fprintf(fd, '%5.2f, ',Vi(3,1:l-1)); fprintf(fd, '%5.2f\n',Vi(3,l));
fclose(fd);
