MATLAB Operators and Special Characters
This page contains a comprehensive listing of all MATLAB operators, symbols, and special characters.
Arithmetic Operators
Symbol
Role
More Information
+
Addition
plus
+
Unary plus
uplus
-
Subtraction
minus
-
Unary minus
uminus
.*
Element-wise multiplication
times
*
Matrix multiplication
mtimes
./
Element-wise right division
rdivide
/
Matrix right division
mrdivide
.\
Element-wise left division
ldivide
\
Matrix left division
(also known as backslash)
mldivide
.^
Element-wise power
power
^
Matrix power
mpower
.'
Transpose
transpose
'
Complex conjugate transpose
ctranspose
Relational Operators
Symbol
Role
More Information
==
Equal to
eq
~=
Not equal to
ne
>
Greater than
gt
>=
Greater than or equal to
ge
<
Less than
lt
<=
Less than or equal to
le
Logical Operators
Symbol
Role
More Information
&
Find logical AND
and
|
Find logical OR
or
&&
Find logical AND (with shortcircuiting)
Logical Operators: ShortCircuit && ||
2 Program Components
2-2
This page contains a comprehensive listing of all MATLAB operators, symbols, and special characters.
Arithmetic Operators
Symbol
Role
More Information
+
Addition
plus
+
Unary plus
uplus
-
Subtraction
minus
-
Unary minus
uminus
.*
Element-wise multiplication
times
*
Matrix multiplication
mtimes
./
Element-wise right division
rdivide
/
Matrix right division
mrdivide
.\
Element-wise left division
ldivide
\
Matrix left division
(also known as backslash)
mldivide
.^
Element-wise power
power
^
Matrix power
mpower
.'
Transpose
transpose
'
Complex conjugate transpose
ctranspose
Relational Operators
Symbol
Role
More Information
==
Equal to
eq
~=
Not equal to
ne
>
Greater than
gt
>=
Greater than or equal to
ge
<
Less than
lt
<=
Less than or equal to
le
Logical Operators
Symbol
Role
More Information
&
Find logical AND
and
|
Find logical OR
or
&&
Find logical AND (with shortcircuiting)
Logical Operators: ShortCircuit && ||
2 Program Components
2-2
