Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 `X(3)` is the third element of`X` .`X([1 2 3])` is the first three elements of`X` .See `help paren` for more information about`( )` .
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 |

| 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. |

Was this topic helpful?