From 1b36440929f7b8badb322b45466c3dd92a991d39 Mon Sep 17 00:00:00 2001 From: Girard Antoine <antoine.girard@centralesupelec.fr> Date: Mon, 22 Jan 2024 16:44:43 +0000 Subject: [PATCH] Upload New File --- state2coord.m | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 state2coord.m diff --git a/state2coord.m b/state2coord.m new file mode 100644 index 0000000..23a609b --- /dev/null +++ b/state2coord.m @@ -0,0 +1,14 @@ +%% Tutorial example on symbolic control +%% Author: Antoine GIRARD, Université Paris-Saclay, CNRS, CentraleSupélec, Laboratoire des signaux et systèmes, 91190, Gif-sur-Yvette, France. +%% Date: 2024 + +function I=state2coord(i,p_x) + +I=zeros(length(p_x)-1,1); + +for k=1:length(p_x)-1 + I(k)=floor(mod(i-1,p_x(k+1))/p_x(k))+1; +end +end + + -- GitLab