Main wrapper file to generate covariance matrix

Includes a diary of the command window Read parameters from a CSV file. Run through all the parameters.

WARNING: Do not erase folders SimManagerAlpha, SimManagerOutput, SimManagerLong, SimManagerRadius

WARNING: Do not erase file SimParamsTable.csv and matching numbers spreadsheets.

Christel Hohenegger

Last updated: 04/04/2016

clearvars
diary('GenCovMat')
particles = [];
filename='SimParamsTable.csv';
paramMat = csvread(filename,1,1);
sizeMat = size(paramMat);
for ii=1:sizeMat(1)
    parameters = GenParameters(paramMat(ii,:));
    fprintf('Working on data set %d\n',ii)
    sim = SimManager(parameters,particles,'./SimManagerAlpha');
    sim.GenSincFun;
    sim.GenWriteCovMat;
    fprintf('\n')
    pause(15)
end
diary off