From c9630d73c05484fc1872f1bd952497a1e7636ba7 Mon Sep 17 00:00:00 2001 From: oreiner Date: Tue, 28 Apr 2020 18:25:50 +0200 Subject: [PATCH] added PE results to posterior struct otherwise unusable outside of the function --- demos/3_behavioural/demo_QlearningAsymmetric.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/3_behavioural/demo_QlearningAsymmetric.m b/demos/3_behavioural/demo_QlearningAsymmetric.m index ea923cc6..b6c37378 100644 --- a/demos/3_behavioural/demo_QlearningAsymmetric.m +++ b/demos/3_behavioural/demo_QlearningAsymmetric.m @@ -117,7 +117,7 @@ theta = [Inf; 0]; % for each trial, recompute the state evolution for t = 1 : n_t - PE(t) = sum (f_QlearningAsym (Qvalues(:,t), theta, u(:,t+1), struct) - Qvalues(:,t)); + posterior.PE(t) = sum (f_QlearningAsym (Qvalues(:,t), theta, u(:,t+1), struct) - Qvalues(:,t)); end end