Installation guide
2 Desktop
The defau lt colors are listed here:
• Keywords — Flow c ontrol functions, such as
for and if,aswellasthe
continuation ellipsis (
...), are colored blue.
• Comments — All lines beginning with a
%, designating the lines as
comments in MATLAB, are colored green. Similarly, the block comm ent
symbols,
%{ and %}, as well as the code in between, appear in green. Text
following the continuation ellipsis on a line is also green because it is
a comment.
• Strings — Type a string and it i s colored maroon. When you complete the
string with the closing quotation mark (
'), it becom es purple. Note that for
functions you enter using command syntax instead of function syntax, the
arguments are highlighted as strings. This is to alert you that in command
notation , var ia bles are p assed as literal strings rather than a s their valu es.
For more information, se e “MATLAB Command Syntax” in the MATLAB
Programming documentation.
• Unterminated strings — A single quote with out a matchin g s ingle quote,
and whatever follows the quote, are colored maroon. This might alert you
to a p os sible error.
• System commands — Commands such as
! (shell escape) are colored gold.
• Errors — Error text that appears after you run code, including any
hyperlinks, is colored red.
Click Restore Default C olors to return to the default settings for syntax
highlighting colors and desktop tool colors.
2-74