diff --git a/matlab/send_endogenous_variables_to_workspace.m b/matlab/send_endogenous_variables_to_workspace.m index 99e2778aa80cb49988354f8eca5198efd7aa81f4..f6348d2a44930874a227306675ea46884fbf40fc 100644 --- a/matlab/send_endogenous_variables_to_workspace.m +++ b/matlab/send_endogenous_variables_to_workspace.m @@ -20,5 +20,5 @@ function send_endogenous_variables_to_workspace() global M_ oo_ for idx = 1:M_.endo_nbr - assignin('base', M_.endo_names{idx}, oo_.endo_simul(idx,:)) + assignin('base', M_.endo_names{idx}, oo_.endo_simul(idx,:)') end \ No newline at end of file diff --git a/matlab/send_exogenous_variables_to_workspace.m b/matlab/send_exogenous_variables_to_workspace.m index 9814bcd40358c1e1155792fe1daeb25361cd779d..df05f758bde6f50f427ae8480a7b746b46e63981 100644 --- a/matlab/send_exogenous_variables_to_workspace.m +++ b/matlab/send_exogenous_variables_to_workspace.m @@ -21,5 +21,5 @@ function send_exogenous_variables_to_workspace() global M_ oo_ for idx = 1:M_.exo_nbr - assignin('base', M_.exo_names{idx}, oo_.exo_simul(:,idx)) + assignin('base', M_.exo_names{idx}, oo_.exo_simul(:,idx)') end \ No newline at end of file diff --git a/tests/deterministic_simulations/purely_backward/ar1.mod b/tests/deterministic_simulations/purely_backward/ar1.mod index 657883e955793a9009230dab3a3af5196f03d84c..33097787c4d258e49a8366895db2b565a2b861cb 100644 --- a/tests/deterministic_simulations/purely_backward/ar1.mod +++ b/tests/deterministic_simulations/purely_backward/ar1.mod @@ -33,6 +33,6 @@ if ~oo_.deterministic_simulation.status end send_endogenous_variables_to_workspace; -if max(abs(y'-[1; exp(cumprod([1; rho*ones(9, 1)]))]))>options_.dynatol.x +if max(abs(y-[1; exp(cumprod([1; rho*ones(9, 1)]))]))>options_.dynatol.x error('Wrong solution!') end diff --git a/tests/moments/example1_hp_test.mod b/tests/moments/example1_hp_test.mod index 7e17be9cb110262b910658aee56a1d5b75aea4e6..461ee0fc9933180bb358f65f552cdcea126fe741 100644 --- a/tests/moments/example1_hp_test.mod +++ b/tests/moments/example1_hp_test.mod @@ -77,12 +77,12 @@ send_endogenous_variables_to_workspace; options_.nomoments=0; oo_unfiltered_all_shocks=oo_; -[junk, y_filtered]=sample_hp_filter(y',1600); -[junk, c_filtered]=sample_hp_filter(c',1600); -[junk, k_filtered]=sample_hp_filter(k',1600); -[junk, a_filtered]=sample_hp_filter(a',1600); -[junk, h_filtered]=sample_hp_filter(h',1600); -[junk, b_filtered]=sample_hp_filter(b',1600); +[junk, y_filtered]=sample_hp_filter(y,1600); +[junk, c_filtered]=sample_hp_filter(c,1600); +[junk, k_filtered]=sample_hp_filter(k,1600); +[junk, a_filtered]=sample_hp_filter(a,1600); +[junk, h_filtered]=sample_hp_filter(h,1600); +[junk, b_filtered]=sample_hp_filter(b,1600); verbatim; total_std_all_shocks_filtered_sim=std([y_filtered c_filtered k_filtered a_filtered h_filtered b_filtered]); @@ -112,12 +112,12 @@ stoch_simul(order=1,nofunctions,hp_filter=0,periods=2500000,nomoments); send_endogenous_variables_to_workspace; oo_unfiltered_one_shock=oo_; -[junk, y_filtered]=sample_hp_filter(y',1600); -[junk, c_filtered]=sample_hp_filter(c',1600); -[junk, k_filtered]=sample_hp_filter(k',1600); -[junk, a_filtered]=sample_hp_filter(a',1600); -[junk, h_filtered]=sample_hp_filter(h',1600); -[junk, b_filtered]=sample_hp_filter(b',1600); +[junk, y_filtered]=sample_hp_filter(y,1600); +[junk, c_filtered]=sample_hp_filter(c,1600); +[junk, k_filtered]=sample_hp_filter(k,1600); +[junk, a_filtered]=sample_hp_filter(a,1600); +[junk, h_filtered]=sample_hp_filter(h,1600); +[junk, b_filtered]=sample_hp_filter(b,1600); verbatim; total_std_one_shock_filtered_sim=std([y_filtered c_filtered k_filtered a_filtered h_filtered b_filtered]);