Filter löschen
Filter löschen

If and elseif is not collapsable

10 Ansichten (letzte 30 Tage)
Ibrahim A
Ibrahim A am 19 Mai 2021
Kommentiert: Ibrahim A am 20 Mai 2021
I have a multiple elseif statment, but somehow I cannot collapse the indivudual elseif statment. Is there a way to this?

Akzeptierte Antwort

DGM
DGM am 19 Mai 2021
Bearbeitet: DGM am 19 Mai 2021
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 Kommentar
Ibrahim A
Ibrahim A am 20 Mai 2021
Thank you very much, I can use switch case instead :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by