Estimation DLL: fix bug with creating MAT files

Similar problem to #446
time-shift
Sébastien Villemot 2013-12-06 14:46:44 +01:00
parent f640912878
commit 85f001885e
1 changed files with 1 additions and 1 deletions

View File

@ -509,7 +509,7 @@ sampleMHMC(LogPosteriorDensity &lpd, RandomWalkMetropolisHastings &rwmh,
ssFName << resultsFileStem << DIRECTORY_SEPARATOR << "metropolis" << DIRECTORY_SEPARATOR << resultsFileStem << "_mh" << (size_t) NewFileVw(b-1) << "_blck" << b << ".mat";
mhFName = ssFName.str();
drawmat = Mat_Open(mhFName.c_str(), MAT_ACC_RDWR);
drawmat = Mat_Create(mhFName.c_str(), NULL);
if (drawmat == 0)
{
mexPrintf("Error in MH: Can not open draws Mat file for writing: %s \n", mhFName.c_str());