Usually, you create one m-file for one MATLAB function. But what to do if you have many small functions? It’s odd to create a lot of files which just contain some lines of code. The other approach is to put the small functions just inside the m file where they are called from. This is a good solution, as long as you don’t have to access the same functions from multiple m-files!
So if you need to access many functions, which all reside in one m-file, just use the object oriented approach, by defining a Class and static methods:
methods (Static = true)
%my functions to be called from outside this m-file
%a lot of more functions
Now, wherever you need to call any function of MyClass, just use:
value = MyClass.increment(1);