Nested Functions
Nested functions are functions within the main function.
function x=outer(a)
       b = 2
        function y=inner(a)
               y=a*b
        end
       inner(a)+b
endNested functions are functions within the main function.
function x=outer(a)
       b = 2
        function y=inner(a)
               y=a*b
        end
       inner(a)+b
end