Info

This question is closed. Reopen it to edit or answer.

MATLAB Preventing Code Folding

1 view (last 30 days)
Ephraim Bryski
Ephraim Bryski on 11 Jul 2019
Closed: MATLAB Answer Bot on 20 Aug 2021
I'm writing a function which is hundreds of lines long and I need it to fold code in order to write it. However, the function suddenly prevented code folding of any kind. All the code folding preferences are set to on and it is the only function which is preventing me from folding code. Does anyone know why this could happen and how to fix it? Thanks.
  2 Comments
Walter Roberson
Walter Roberson on 11 Jul 2019
That can happen if there is a structure error in your code such as a missing end statement.
Ephraim Bryski
Ephraim Bryski on 11 Jul 2019
Thank you so much! I had two parse errors (an extra end which I added in an attempt to fix the problem and a line which I hadn't finished writing) so it was initially hard to realize what was causing it.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!