Special characters
[ ]
{ }
( )
=
'
.
.
.( )
..
...
,
;
:
%
%{ %}
!
@
| Brackets are used to form vectors and matrices.
Vectors and matrices can be used inside
For
the use of |
| Curly braces are used in cell array assignment statements.
For example, |
| Parentheses are used to indicate precedence in arithmetic
expressions in the usual way. They are used to enclose arguments of
functions in the usual way. They are also used to enclose subscripts
of vectors and matrices in a manner somewhat more general than usual.
If
If |
| Used in assignment statements. |
| Matrix transpose. Quotation mark. |
| Decimal
point. Element-by-element operations. These are
obtained using |
| Field access. |
| Dynamic Field access. |
| Parent folder. See |
| Continuation. Three or more periods at the end of a line continue the current function on the next line. Three or more periods before the end of a line cause the MATLAB® software to ignore the remaining text on the current line and continue the function on the next line. This effectively makes a comment out of anything on the current line that follows the three periods. For an example, see Continue Long Statements on Multiple Lines. |
| Comma. Used to separate matrix subscripts and function arguments. Used to separate statements in multistatement lines. For multistatement lines, the comma can be replaced by a semicolon to suppress printing. |
| Semicolon. Used inside brackets to end rows. Used after an expression or statement to suppress printing or to separate statements. |
| Colon. Create vectors, array subscripting, and |
| Percent.
The percent symbol denotes a comment; it indicates a logical end of
line. Any following text is ignored. MATLAB displays the first
contiguous comment lines in a function or script file in response
to a |
| Percent-brace. The text enclosed within
the With the exception of whitespace characters, the %{ and %} operators must appear alone on the lines that immediately precede and follow the block of help text. Do not include any other text on these lines. |
| Exclamation point. Indicates that the rest of the input line is issued as a command to the operating system. See Run External Commands, Scripts, and Programs for more information. |
| Function handle. MATLAB data type that is a handle to a function. See Create Function Handle for details. |