If and elseif is not collapsable

3 ビュー (過去 30 日間)
Ibrahim A
Ibrahim A 2021 年 5 月 19 日
コメント済み: Ibrahim A 2021 年 5 月 20 日
I have a multiple elseif statment, but somehow I cannot collapse the indivudual elseif statment. Is there a way to this?

採用された回答

DGM
DGM 2021 年 5 月 19 日
編集済み: DGM 2021 年 5 月 19 日
Code folding options are in preferences under Editor>Code Folding; however, (as far as I know) that only allows the entire if/else structure to be folded. Individual cases within it can't. At least that's the way it is in R2015b and R2019b. Anyone is free to prove me wrong on that.
EDIT: It may be of interest to point out that while individual cases within an if-else structure aren't foldable, cases within a switch-case structure are.
  1 件のコメント
Ibrahim A
Ibrahim A 2021 年 5 月 20 日
Thank you very much, I can use switch case instead :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by