I would say what I'm seeing is unexpected behaviour. Also, putting
as the first line in the help subfunction gives:
C:\....\test.m (help) % Subfunction of test
which is unexpected too.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!