Question

Text folding is not working in my matlab 2013. I enabled everything in preferences Editor/Debugger, but still no luck. Below is an example of what I am trying to fold.

test = 5;

%%
t =7;

%%

No correct solution

OTHER TIPS

What did you enable in the preferences? In R2013a you should go to Preferences > Editor/Debugger > Code Folding and click the Enable checkbox for Sections that is off by default. Then click Apply or OK. Here's an annotated screen capture of Code Folding pane of my preferences:

enter image description here

You should see a little minus toggle button appear to the left of the first %% instance in your example:

                                    enter image description here

Clicking the toggle button will fold the section of code. You will also find other options and keyboard shortcuts under the contextual menu by right-clicking or control-clicking.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top