Commit 59dd96db authored by Johannes Pfeifer 's avatar Johannes Pfeifer

Bayesian smoother: fix field naming for Filtered_Variables_X_step_ahead

Naming used length of vector instead of actual steps
parent 8f47b276
...@@ -264,7 +264,7 @@ else ...@@ -264,7 +264,7 @@ else
end end
if filter_step_ahead_indicator if filter_step_ahead_indicator
for K_step = 1:length(options_.filter_step_ahead) for K_step = 1:length(options_.filter_step_ahead)
name4=['Filtered_Variables_',num2str(K_step),'_step_ahead']; name4=['Filtered_Variables_',num2str(options_.filter_step_ahead(K_step)),'_step_ahead'];
oo_.(name4).Mean.(name) = squeeze(Mean_filter_step_ahead(K_step,i,:)); oo_.(name4).Mean.(name) = squeeze(Mean_filter_step_ahead(K_step,i,:));
oo_.(name4).Median.(name) = squeeze(Median_filter_step_ahead(K_step,i,:)); oo_.(name4).Median.(name) = squeeze(Median_filter_step_ahead(K_step,i,:));
oo_.(name4).Var.(name) = squeeze(Var_filter_step_ahead(K_step,i,:)); oo_.(name4).Var.(name) = squeeze(Var_filter_step_ahead(K_step,i,:));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment