Mind the Gap: The PhysioNet/Computing in Cardiology Challenge 2010 1.0.0

File: <base>/sources/Rui-Rodrigues/octave_matlab/writematriz.m (256 bytes)
function A=writematriz(filename,matriz)


fid = fopen (filename, 'w');

[nrows, ncols]=size(matriz);

fprintf(fid,'%d ',nrows);

fprintf(fid,'%d\n',ncols);

for i=1:nrows
  fprintf(fid,'%10.7f ',matriz(i,:));
  fprintf(fid,'\n');
end	  

fclose (fid);

end