diff --git a/demo_DSGMR01.m b/demo_DSGMR01.m
index 5d75a7096146d07fdd955218ee2009279c3720ac..1e41f6642b6d7e56954f1bebc361b1c6230ef595 100644
--- a/demo_DSGMR01.m
+++ b/demo_DSGMR01.m
@@ -23,6 +23,8 @@ function demo_DSGMR01
 %   pages="3339--3344"
 % }
 
+addpath('./m_fcts/');
+
 %% Parameters
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 model.nbStates = 3; %Number of Gaussians in the GMM
diff --git a/demo_TPGMR_LQR01.m b/demo_TPGMR_LQR01.m
index 4b186764f714bdda271108d9d460197e0148b950..60353c4f409bc8a70742446e1b2433bdd137976d 100644
--- a/demo_TPGMR_LQR01.m
+++ b/demo_TPGMR_LQR01.m
@@ -25,6 +25,8 @@ function demo_TPGMR_LQR01
 %   pages="3339--3344"
 % }
 
+addpath('./m_fcts/');
+
 %% Parameters
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 model.nbStates = 3; %Number of Gaussians in the GMM
diff --git a/demo_TPGMR_LQR02.m b/demo_TPGMR_LQR02.m
index 2d4b8de94fe4beb3402d6b544315d60d5e83562f..86d95c1ebe04206df2e7fc986f31bd62506d6ab8 100644
--- a/demo_TPGMR_LQR02.m
+++ b/demo_TPGMR_LQR02.m
@@ -25,6 +25,8 @@ function demo_TPGMR_LQR02
 %   pages="3339--3344"
 % }
 
+addpath('./m_fcts/');
+
 %% Parameters
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 model.nbStates = 3; %Number of Gaussians in the GMM
diff --git a/demo_testLQR01.m b/demo_testLQR01.m
index 693c905fd622bbb4e8e36e451284bb03bbbe49b4..59afed3c67bac2acb88e60f571f8b1a69fe506b9 100644
--- a/demo_testLQR01.m
+++ b/demo_testLQR01.m
@@ -17,6 +17,8 @@ function demo_testLQR01
 %   pages="3339--3344"
 % }
 
+addpath('./m_fcts/');
+
 %% Parameters
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 model.nbVar = 2; %Dimension of the datapoints in the dataset (here: t,x1)
diff --git a/demo_testLQR02.m b/demo_testLQR02.m
index 157f7a28d15f32752a7f25a78db73116bc04ca43..39bfaeafc16b7f0d0500b8c6f38a79ed0b678d55 100644
--- a/demo_testLQR02.m
+++ b/demo_testLQR02.m
@@ -17,6 +17,8 @@ function demo_testLQR02
 %   pages="3339--3344"
 % }
 
+addpath('./m_fcts/');
+
 %% Parameters
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 model.nbVar = 2; %Dimension of the datapoints in the dataset (here: t,x1)
diff --git a/demo_testLQR03.m b/demo_testLQR03.m
index 426ed83fc13b1fb2d00ee3c78deae54d706e00b8..45a9ca890a2998b0792c4a845d6531689c0b611b 100644
--- a/demo_testLQR03.m
+++ b/demo_testLQR03.m
@@ -17,6 +17,8 @@ function demo_testLQR03
 %   pages="3339--3344"
 % }
 
+addpath('./m_fcts/');
+
 %% Parameters
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 model.nbVar = 2; %Dimension of the datapoints in the dataset (here: t,x1)
diff --git a/EM_tensorGMM.m b/m_fcts/EM_tensorGMM.m
similarity index 100%
rename from EM_tensorGMM.m
rename to m_fcts/EM_tensorGMM.m
diff --git a/GMR.m b/m_fcts/GMR.m
similarity index 100%
rename from GMR.m
rename to m_fcts/GMR.m
diff --git a/estimateAttractorPath.m b/m_fcts/estimateAttractorPath.m
similarity index 100%
rename from estimateAttractorPath.m
rename to m_fcts/estimateAttractorPath.m
diff --git a/gaussPDF.m b/m_fcts/gaussPDF.m
similarity index 100%
rename from gaussPDF.m
rename to m_fcts/gaussPDF.m
diff --git a/init_tensorGMM_kmeans.m b/m_fcts/init_tensorGMM_kmeans.m
similarity index 100%
rename from init_tensorGMM_kmeans.m
rename to m_fcts/init_tensorGMM_kmeans.m
diff --git a/init_tensorGMM_timeBased.m b/m_fcts/init_tensorGMM_timeBased.m
similarity index 100%
rename from init_tensorGMM_timeBased.m
rename to m_fcts/init_tensorGMM_timeBased.m
diff --git a/kmeansClustering.m b/m_fcts/kmeansClustering.m
similarity index 100%
rename from kmeansClustering.m
rename to m_fcts/kmeansClustering.m
diff --git a/plotGMM.m b/m_fcts/plotGMM.m
similarity index 100%
rename from plotGMM.m
rename to m_fcts/plotGMM.m
diff --git a/productTPGMM.m b/m_fcts/productTPGMM.m
similarity index 100%
rename from productTPGMM.m
rename to m_fcts/productTPGMM.m
diff --git a/reproduction_DS.m b/m_fcts/reproduction_DS.m
similarity index 100%
rename from reproduction_DS.m
rename to m_fcts/reproduction_DS.m
diff --git a/reproduction_LQR_finiteHorizon.m b/m_fcts/reproduction_LQR_finiteHorizon.m
similarity index 100%
rename from reproduction_LQR_finiteHorizon.m
rename to m_fcts/reproduction_LQR_finiteHorizon.m
diff --git a/reproduction_LQR_infiniteHorizon.m b/m_fcts/reproduction_LQR_infiniteHorizon.m
similarity index 100%
rename from reproduction_LQR_infiniteHorizon.m
rename to m_fcts/reproduction_LQR_infiniteHorizon.m
diff --git a/solveAlgebraicRiccati_Schur.m b/m_fcts/solveAlgebraicRiccati_Schur.m
similarity index 100%
rename from solveAlgebraicRiccati_Schur.m
rename to m_fcts/solveAlgebraicRiccati_Schur.m
diff --git a/solveAlgebraicRiccati_eig.m b/m_fcts/solveAlgebraicRiccati_eig.m
similarity index 100%
rename from solveAlgebraicRiccati_eig.m
rename to m_fcts/solveAlgebraicRiccati_eig.m