I have a function file that contains some subfunctions, as in the example below:
function foo1 disp('This function contains subfunctions it can call.') foo2; foo3;function foo2 disp('in foo2');function foo3 disp('in foo3');
I would like to access subfunctions "foo2" and "f003" from outside the function (similar to the "include" functionality in C).
Best Answer