When using code sections / code cells / cell mode ( %%) sections in MATLAB R2014a and R2014b (see these two MathWorks links), selecting a section in the editor works fine with both scripts and functions.
However, the sections are displayed correctly in the Details window of the Current Folder window for scripts only and not for functions , see the lower left corner in the following two screenshots:


Is there any way to change this behavior? I really appreciate the presentation of the section in the Details panel of the Current Folder window, since it shows the general structure of the script and provides convenient navigation, which I would like to get for functions as well.