Is there a way to create "sub-folding" / "sub-sections"?
4 ビュー (過去 30 日間)
I know I can create sections in my script editor with
Question is, can I make several layers of 'sectioning'?
I mean, similar to headings in WORD...
that way I could organize, divide & fold my code as I please...
回答 (1 件)
Prateek Rai 2021 年 10 月 8 日
To my understanding, you want to make several layers of sectioning in a MATLAB script.
This is possible when you have loop (such as for loop), conditional statement (such as an if statement) or functions in the script.
You can refer to Create and Run Sections in Code MathWorks documentation page to learn more on the behavior of sections in functions or behavior of sections in loops and conditional statements.