Correction of a bug in PosteriorIRF: i -> b (the last _irf was missing).

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@668 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
adjemian 2006-03-10 16:41:03 +00:00
parent 88098dfb5a
commit e81a091ef8
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ else% type = 'prior'
end
B = min([round(.5*NumberOfDraws),500]);
try delete([MhDirectoryName '/' M_.fname '_IRFs*']);
catch disp('No _IRFs files to delete!')
catch disp('No _IRFs files to be deleted!')
end
irun = 0;
ifil = 1;
@ -62,8 +62,8 @@ for b=1:B
end
end
end
if irun == MAX_nirfs | irun == B | i == B
if i == B
if irun == MAX_nirfs | irun == B | b == B
if b == B
stock_irf = stock_irf(:,:,:,1:irun);
end
save([MhDirectoryName '/' M_.fname '_irf' int2str(ifil)],'stock_irf');