This is my notes about how Matlab call subroutine. We could make them all static methods on a utility class. The functions will be globally referenceable by name, but you only need to manage one M-file. Please look at my sample code :
function [a1] = test1_toto
a1 = 'test1';
function [a2] = test2_toto
a2 = 'test2';
We can call the sub function in Matlab with command like this :
The sample code above show how simple call sub function in Matlab.