wolffd@0: function inx = resume_from_grid(log_file,inx_size); wolffd@0: % The function read the log file and resume the grid search for params wolffd@0: % sontran 2013 wolffd@0: stt = exist(log_file,'file'); wolffd@0: if stt == 0 wolffd@0: inx = ones(1,inx_size); wolffd@0: else wolffd@0: load(log_file); wolffd@0: inx = data(end,:); wolffd@0: inx = inx(1:inx_size); wolffd@0: end wolffd@0: end wolffd@0: