diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5cc04616729b559eb84392126cbe87854ecd4808..ebb5270f373552d37f30ee97258b0c60de37e47d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,7 @@ before_script:
 test_matlab:
   stage: test
   script:
-    - make check-matlab MATLAB=/usr/local/MATLAB/$MATLAB_VERSION/bin/matlab
+    - make check-matlab MATLAB=/opt/MATLAB/$MATLAB_VERSION/bin/matlab
   artifacts:
     paths:
       - test/my/report/dir/report.pdf
@@ -16,7 +16,7 @@ test_matlab:
 test_old_matlab:
   stage: test
   script:
-    - make check-matlab MATLAB=/usr/local/MATLAB/$OLD_MATLAB_VERSION/bin/matlab
+    - make check-matlab MATLAB=/opt/MATLAB/$OLD_MATLAB_VERSION/bin/matlab
   artifacts:
     paths:
       - test/my/report/dir/report.pdf