Mercurial > hg > camir-aes2014
annotate core/magnatagatune/tests_evals/rbm_subspace/logging.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 function logging( file,log_dat) |
wolffd@0 | 2 % Log all values in data to the file |
wolffd@0 | 3 % sontran2013 |
wolffd@0 | 4 stt = exist(file,'file'); |
wolffd@0 | 5 if stt == 0 |
wolffd@0 | 6 data = zeros(0,0); |
wolffd@0 | 7 else |
wolffd@0 | 8 load(file); |
wolffd@0 | 9 end |
wolffd@0 | 10 data = [data;log_dat]; |
wolffd@0 | 11 if exist('OCTAVE_VERSION') |
wolffd@0 | 12 save('-mat-binary',file,'data'); |
wolffd@0 | 13 else |
wolffd@0 | 14 save(file,'data'); |
wolffd@0 | 15 end |
wolffd@0 | 16 end |
wolffd@0 | 17 |