diff --git a/matlab/aggregate.m b/matlab/aggregate.m
index 0dc3c76ab40c5e04d8c49fe55057fc648bc3e88a..d42d87383f0fa28e7edb2a3a379017440e569ef3 100644
--- a/matlab/aggregate.m
+++ b/matlab/aggregate.m
@@ -21,7 +21,7 @@ function aggregate(ofile, dynopt, rootfolder, varargin)
 
 MAX_NUMBER_OF_ELEMENTS = 10000;
 
-if ~isoctave && matlab_less_ver_than('9.14') % Warning removed in R2023a
+if ~isoctave && matlab_ver_less_than('9.14') % Warning removed in R2023a
     warning off MATLAB:subscripting:noSubscriptsSpecified
 end
 
@@ -320,7 +320,7 @@ end
 fprintf(fid, 'end;');
 fclose(fid);
 
-if ~isoctave && matlab_less_ver_than('9.14')
+if ~isoctave && matlab_ver_less_than('9.14')
     warning on MATLAB:subscripting:noSubscriptsSpecified
 end