dynare linear_nk.mod

simulated_series_raw=get_simul_replications(M_,options_);

T = 150;

for i = 1:M_.endo_nbr
    eval(['fake_',M_.endo_names{i},'1 = zeros(T,1);']) 
    for j=1:T
     eval(['fake_',M_.endo_names{i},'1(j,1) = simulated_series_raw(i,j,1);']);
    end

end

tiledlayout(2,2)
nexttile
plot(fake_y1)
title('fake_y1')
nexttile
plot(fake_pi1)
title('fake_pi1')
nexttile
plot(fake_i1)
title('fake_i1')