Matlab Does Not Display Code Folding
Ältere Kommentare anzeigen

The line to expand/collapse the code disappears after I edited the script with text. The code fielding option is turned on in preferences. Is there any way to get it back?
3 Kommentare
Mark Hayworth
am 4 Apr. 2016
Did you try turning it off and then back on again? Perhaps restarting in between?
Matlab_Student
am 4 Apr. 2016
matthew schwarz
am 9 Jan. 2022
Bearbeitet: matthew schwarz
am 9 Jan. 2022
So i had a similar problem to OP, that others who find themselves here might find useful.
I currently use the hack
##
Stuff i want folded
##
However Ctrl+Shift+. was not folding code and i could not see + in the margin despite all boxes in settings ticked.
You have to right click on the margin/breakpoint and look for "Show Code Folding Margin".
Now the + appears where you can fold code.
Akzeptierte Antwort
Weitere Antworten (1)
David Tanis
am 8 Nov. 2020
Bearbeitet: David Tanis
am 8 Nov. 2020
0 Stimmen
Hi, So building on this question: How come matlab suddenly decided overnight there were too many errors? And more importantly, how can I fix it quickly? My whole code was based on a sort of improvised foldable userinterface, that has now disappeared. To be clear, my code wasnt made to run in one go, only code sections were intended to be viable.
Any help would be much appreciated.
1 Kommentar
David Tanis
am 8 Nov. 2020
I solved it: I left a 'switch' somewhere unattended.
Kategorien
Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!