Filter löschen
Filter löschen

Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Help Matlab understand where a (to-be-folded) code section begins and ends

1 Ansicht (letzte 30 Tage)
z8080
z8080 am 24 Mai 2016
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
Hello,
I would like certain sections (rows) in my Matlab script to be foldable as a section code (cell). These rows do not necessarily always have an "end" keyword terminating them, and so I'd like to define myself where a code section begins and ends.
However, it seems that Matlab only understands the beginnings (marked with %%), and not the endings, of such code sections. Matlab seems to look for various other clues (such as code keywords like 'case') as the end of a code section, and ignores % or %% symbols, which I inserted in order to tell Matlab this is where I'd like the cell to end.
Any help with this much appreciated!

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by