If and elseif is not collapsable

I have a multiple elseif statment, but somehow I cannot collapse the indivudual elseif statment. Is there a way to this?

 Respuesta aceptada

DGM
DGM el 19 de Mayo de 2021
Editada: DGM el 19 de Mayo de 2021

0 votos

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 comentario

Ibrahim A
Ibrahim A el 20 de Mayo de 2021
Thank you very much, I can use switch case instead :)

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 19 de Mayo de 2021

Comentada:

el 20 de Mayo de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by