From 442bf232b0a00a715cdbbda72b09e4e693ce15ee Mon Sep 17 00:00:00 2001 From: ratto <ratto@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Mon, 27 Nov 2006 14:45:12 +0000 Subject: [PATCH] Fixed when one wants all the runs (no cut). git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1109 ac1d8469-bf42-47a9-8791-bf33cf982152 --- matlab/CutSample.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/CutSample.m b/matlab/CutSample.m index 432196af5c..593f3b2459 100644 --- a/matlab/CutSample.m +++ b/matlab/CutSample.m @@ -20,7 +20,7 @@ end TotalNumberOfMhFiles = sum(record.MhDraws(:,2)); TotalNumberOfMhDraws = sum(record.MhDraws(:,1)); MAX_nruns = ceil(options_.MaxNumberOfBytes/(npar+2)/8) -FirstDraw = floor(options_.mh_drop*TotalNumberOfMhDraws); +FirstDraw = max(1,floor(options_.mh_drop*TotalNumberOfMhDraws)); FirstMhFile = ceil(FirstDraw/MAX_nruns); FirstLine = FirstDraw-(FirstMhFile-1)*MAX_nruns+1; record.KeepedDraws.FirstMhFile = FirstMhFile; -- GitLab