ShowBatch - Show data sets in a batch job. USAGE b = ShowBatch(bfile) bfile batch file listing the parameters for each iteration See also StartBatch, GetBatch, BatchInfo, CancelBatch, CleanBatches, Store, Recall.
0001 function b = ShowBatch(bfile) 0002 0003 %ShowBatch - Show data sets in a batch job. 0004 % 0005 % USAGE 0006 % 0007 % b = ShowBatch(bfile) 0008 % 0009 % bfile batch file listing the parameters for each iteration 0010 % 0011 % See also StartBatch, GetBatch, BatchInfo, CancelBatch, CleanBatches, Store, Recall. 0012 % 0013 0014 % Copyright (C) 2007-2013 by Michaƫl Zugaro 0015 % 0016 % This program is free software; you can redistribute it and/or modify 0017 % it under the terms of the GNU General Public License as published by 0018 % the Free Software Foundation; either version 3 of the License, or 0019 % (at your option) any later version. 0020 0021 % Check number of parameters 0022 if nargin < 1, 0023 error('Incorrect number of parameters (type ''help <a href="matlab:help ShowBatch">ShowBatch</a>'' for details).'); 0024 end 0025 0026 % Make sure the batch file exists 0027 if ~isastring(bfile) || ~exist(bfile,'file'), 0028 error('Batch file not found (type ''help <a href="matlab:help ShowBatch">ShowBatch</a>'' for details).'); 0029 end 0030 0031 % Open batch file 0032 f = fopen(bfile,'r'); 0033 if f == -1, error(['Could not open file ''' bfile '''.']); end 0034 0035 b = ParseBatch(bfile); 0036 b.field 0037