MathWorks interview question

Difference between nested and sub functions in MATLAB