function primary_function
    disp('This is primary.');
    subfunction1();
    subfunction2();
end

function subfunction1
    disp('This is sub1.');
end

function subfunction2
    disp('This is sub2.');
end