Index: mttroot/mtt/lib/control/PPP/ppp_qp_sim.m ================================================================== --- mttroot/mtt/lib/control/PPP/ppp_qp_sim.m +++ mttroot/mtt/lib/control/PPP/ppp_qp_sim.m @@ -57,11 +57,11 @@ T_ol = 0:dt:Delta_ol; # Create the open-loop time vector else T_ol = [0,dt]; Delta_ol = dt; endif - t_last = 2*t(length(t)); + t_last = t(length(t)); T_cl = 0:Delta_ol:t_last-Delta_ol; # Closed-loop time vector T = 0:dt:t_last; # Overall time vector ## Lengths thereof n_Tcl = length(T_cl);