Is there a way to 'fold up' sections of code - like when you close up a for loop
657 visualizzazioni (ultimi 30 giorni)
Is there a way to hide sections of code - like when you close up a for loop?
I have quite a long code with a few different sections, and while I'm working on one section I'd like to hide the other sections so the code is a bit more manageable to get around.
Daniel Shub il 4 Apr 2012
Under preferences you can enable code folding for blocks. Blocks are defined in MATLAB as sections starting with %% (I am not sure if they can have anything else on the line).
So you should be able to fold
Più risposte (2)
Adam Spry il 18 Mar 2017
for d = 1
[Your code here]
its collapsable on demand and doesn't effect the code at all (someone please correct me if I'm wrong). It can be used as many times as you like for each section of the code.