From f348c89a65f65f4d51fc63ddc8ac36dd15cdaed1 Mon Sep 17 00:00:00 2001
From: ratto <ratto@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Mon, 23 Mar 2009 09:10:50 +0000
Subject: [PATCH] Fix when k-step ahead predictions are stored, with k>1, and
 one-step-ahead predictions has to be stored in stock1.

git-svn-id: https://www.dynare.org/svn/dynare/branches/4.0@2508 ac1d8469-bf42-47a9-8791-bf33cf982152
---
 matlab/pm3.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/matlab/pm3.m b/matlab/pm3.m
index 0db6d37684..ca093f8299 100644
--- a/matlab/pm3.m
+++ b/matlab/pm3.m
@@ -53,7 +53,7 @@ function pm3(n1,n2,ifil,B,tit1,tit2,tit3,tit_tex,names1,names2,name3,DirectoryNa
   for file = 1:ifil
     load([DirectoryName '/' M_.fname var_type int2str(file)]);
     if size(size(stock),2) == 4
-        stock = squeeze(stock(1,:,:,:));
+        stock = squeeze(stock(1,:,1:n2,:));
     end
     k = k(end)+(1:size(stock,3));
     stock1(:,:,k) = stock;
-- 
GitLab