Skip to content
Snippets Groups Projects
Commit f348c89a authored by ratto's avatar ratto
Browse files

Fix when k-step ahead predictions are stored, with k>1, and one-step-ahead...

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
parent 539a9951
Branches
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ function pm3(n1,n2,ifil,B,tit1,tit2,tit3,tit_tex,names1,names2,name3,DirectoryNa ...@@ -53,7 +53,7 @@ function pm3(n1,n2,ifil,B,tit1,tit2,tit3,tit_tex,names1,names2,name3,DirectoryNa
for file = 1:ifil for file = 1:ifil
load([DirectoryName '/' M_.fname var_type int2str(file)]); load([DirectoryName '/' M_.fname var_type int2str(file)]);
if size(size(stock),2) == 4 if size(size(stock),2) == 4
stock = squeeze(stock(1,:,:,:)); stock = squeeze(stock(1,:,1:n2,:));
end end
k = k(end)+(1:size(stock,3)); k = k(end)+(1:size(stock,3));
stock1(:,:,k) = stock; stock1(:,:,k) = stock;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment