From db2f6f124182427ef3ebf098b5c80af0db236de4 Mon Sep 17 00:00:00 2001 From: EmaMaker Date: Fri, 13 Sep 2024 20:29:18 +0200 Subject: [PATCH] tesi: fix output position vector --- tesi.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tesi.m b/tesi.m index bfc4537..0d0ff4f 100644 --- a/tesi.m +++ b/tesi.m @@ -149,7 +149,7 @@ function [t, q, y, ref_t, U, U_track, U_corr, U_corr_pred_history, Q_pred] = sim y1 = q(:, 1) + sim_data.b * cos(q(:,3)); y2 = q(:, 2) + sim_data.b * sin(q(:,3)); - y = [y; y1, y2]; + y = [y; [y1, y2]]; end ref_t = double(subs(sim_data.ref, t'))';