You can set delimiter matching options in the Command Window, Editor, and Live Editor.
On the Home tab, in the Environment section, click Preferences. Select MATLAB > Keyboard, and then adjust the options as described in this table.
Specify when and if MATLAB® alerts you to matched and mismatched delimiters. Delimiters include parentheses, brackets, braces, and, in the Editor only, paired keywords.
Select Show matches and mismatches when typing for MATLAB to alert you to matched and mismatched delimiters as you type.
Select Show matches and mismatches when using arrow keys for MATLAB to alert you to matched and mismatched delimiters when you move the cursor over a delimiter by using an arrow key.
For details, see Delimiter Matching.