If and elseif is not collapsable
17 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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.
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!