MATLAB: Is it possible to group if-end code in the same way as a for loop

editorformattingMATLAB

As specified in the title, i'd like to know if it is possible to 'hide' the body of an if-end portion of code in the same way that is available for a for loop, in which a section is automatically created between the for and the end, allowing to show or hide the lines between the two commands with the plus/minus symbol.

Best Answer

Yes, look in the preferences: