Is there a way to 'fold up' sections of code--like when you close up a while loop?

21 ビュー (過去 30 日間)
Mel
Mel 2012 年 11 月 13 日
I know someone already asked and answered this question, however, the accepted answer does not work for me.
I am using Matlab 7.10.0 (R2010a) and have a rather long code that has multiple sections. While working on one section, I would like to "fold" the other sections so that it is easier to navigate.
The answer that the other person accepted was to put that section of code between "%%", such as:
a=2;
b=4;
However, "%%" create cell blocks that do not fold and act as separate entities when I try to test the program (they need to act as one, not multiple, sections). If anyone has an alternative method, it would be greatly appreciated.

採用された回答

Arthur
Arthur 2012 年 11 月 13 日
You have to activate code folding for cells in Preferences.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBig Data Processing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by