To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit c6273161 authored by dandreea's avatar dandreea
Browse files

Updated the sgm into tapas_sgm for the plotting function.

parent c17f87de
......@@ -68,14 +68,14 @@ ylabel('\mu_3');
%%
subplot(3,1,2);
plot(0:t, [sgm(r.p_prc.mu2r_0, 1); sgm(r.traj.mu_r(:,2), 1)], 'r', 'LineWidth', 2);
plot(0:t, [tapas_sgm(r.p_prc.mu2r_0, 1); tapas_sgm(r.traj.mu_r(:,2), 1)], 'r', 'LineWidth', 2);
hold all;
plot(0, sgm(r.p_prc.mu2r_0, 1), 'or', 'LineWidth', 2); % prior
plot(0, tapas_sgm(r.p_prc.mu2r_0, 1), 'or', 'LineWidth', 2); % prior
plot(1:t, r.u(:,1), '*', 'Color', 'k'); % reward
plot(0:t, [sgm(r.p_prc.mu2a_0, 1); sgm(r.traj.mu_a(:,2), 1)], 'm', 'LineWidth', 2);
plot(0, sgm(r.p_prc.mu2a_0, 1), 'or', 'LineWidth', 2); % prior
plot(0:t, [tapas_sgm(r.p_prc.mu2a_0, 1); tapas_sgm(r.traj.mu_a(:,2), 1)], 'm', 'LineWidth', 2);
plot(0, tapas_sgm(r.p_prc.mu2a_0, 1), 'or', 'LineWidth', 2); % prior
plot(1:t, r.u(:,2), 'o', 'Color', [0 0.6 0]); % advice
if ~isempty(find(strcmp(fieldnames(r),'y'))) && ~isempty(r.y)
......
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