diff --git a/state2coord.m b/state2coord.m
new file mode 100644
index 0000000000000000000000000000000000000000..23a609b970d3d3e830770d1af6f84b626b3f757b
--- /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
+
+