MATLAB: ‘Go To’ button in Matlab 2017 editor

sections

In Matlab 2017, The 'Go To' button in the matlab editor doesn't show the sections inside a function. It used to work fine with older versions. Anyone encountered this and has a solution?

Best Answer

I just confirmed that the editors in R2016a, R2017a and R2017b all have the "SHOW SECTIONS" option - at least when sections actually exist in the file. It does appear that R2016a is one or the other, where R2017a and R2017b show functions, or sections + functions.
For others out there, code sections are delimited by "%%" at the beginning of a line. The following would give you 2 sections labeled "Parse inputs" and "Do the work" in the Go To button.
%%Parse inputs
if nargin < 2
arg2 = randi(10);
end
%%Do the work
out = arg1.*arg2;