MATLAB Code Sections - Script vs. Function

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:

The View section in the current folder works for Script

The view in the current folder does not work for the function

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.

+6
1

. , . scripts , sections script.

, local function ( , - , ). , , MAT- .

+1

All Articles